langinfo.c 458 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. *
  4. * Authors: Mike Sperber
  5. */
  6. /*
  7. * If the system doesn't have an nl_langinfo procedure, we provide our
  8. * own dummy version.
  9. */
  10. #include "sysdep.h"
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. char *
  14. nl_langinfo(nl_item item)
  15. {
  16. if (item == CODESET)
  17. return "ASCII";
  18. else
  19. {
  20. fprintf(stderr, "unknown nl_item argument to nl_langinfo: %d", item);
  21. exit(-1);
  22. }
  23. }