File: test-command-line-encoding2

package info (click to toggle)
guile-2.0 2.0.11%2B1-9
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 27,612 kB
  • sloc: ansic: 132,286; lisp: 67,206; sh: 4,593; makefile: 1,977; perl: 243; awk: 37
file content (20 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Choose a locale name that lacks a dot followed by the encoding name.
# This should not confuse `environ_locale_charset'.
# See <http://bugs.gnu.org/10742> for the original bug report.
LC_ALL="en_US"
export LC_ALL
unset LANG
unset LC_CTYPE

exec guile -q -s "$0" "hello"
!#

;; Make sure our argument was suitable decoded.
(exit (string=? (cadr (program-arguments)) "hello"))

;; Local Variables:
;; mode: scheme
;; coding: iso-8859-1
;; End: