test-command-line-encoding2 455 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # Choose a locale name that lacks a dot followed by the encoding name.
  3. # This should not confuse `environ_locale_charset'.
  4. # See <http://bugs.gnu.org/10742> for the original bug report.
  5. LC_ALL="en_US"
  6. export LC_ALL
  7. unset LANG
  8. unset LC_CTYPE
  9. exec guile -q -s "$0" "hello"
  10. !#
  11. ;; Make sure our argument was suitable decoded.
  12. (exit (string=? (cadr (program-arguments)) "hello"))
  13. ;; Local Variables:
  14. ;; mode: scheme
  15. ;; coding: iso-8859-1
  16. ;; End: