Author: jilles
Date: Sun Jun 12 12:55:46 2011
New Revision: 223011
URL: http://svn.freebsd.org/changeset/base/223011

Log:
  sh: Add test for LC_COLLATE-based character ranges in case.

Added:
  head/tools/regression/bin/sh/builtins/case7.0   (contents, props changed)

Added: head/tools/regression/bin/sh/builtins/case7.0
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/case7.0       Sun Jun 12 12:55:46 
2011        (r223011)
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+# Character ranges in a locale other than the POSIX locale, not specified
+# by POSIX.
+
+unset LC_ALL
+LC_CTYPE=de_DE.ISO8859-1
+export LC_CTYPE
+LC_COLLATE=de_DE.ISO8859-1
+export LC_COLLATE
+
+c1=e
+# o umlaut
+c2=$(printf '\366')
+
+case $c1$c2 in
+[a-z][a-z]) ;;
+*) echo wrong at $LINENO ;;
+esac
+
+case $c1$c2 in
+[a-f][n-p]) ;;
+*) echo wrong at $LINENO ;;
+esac
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to