summaryrefslogtreecommitdiff
path: root/m4/host-os.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-02-19 15:06:52 +0100
committerBruno Haible <bruno@clisp.org>2012-02-19 15:06:52 +0100
commitdd544abd49f81be63b5d10de9a1060329834c177 (patch)
tree6b2eb79e8803d3cc5f53ce6d3f6050d676bacf8a /m4/host-os.m4
parent74a0def25839a0c6934ca611e605694840877140 (diff)
downloadgnulib-dd544abd49f81be63b5d10de9a1060329834c177.tar.gz
Fix test failure in many locales on Solaris 11.
* tests/test-pipe-filter-gi1.c (main): Don't use range expression in 'tr' arguments. * tests/test-pipe-filter-ii1.c (main): Likewise. * build-aux/bootstrap (check_versions): Run 'tr' command with range expressions in the C locale. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise. * m4/host-os.m4 (gl_HOST_OS): Likewise.
Diffstat (limited to 'm4/host-os.m4')
-rw-r--r--m4/host-os.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/host-os.m4 b/m4/host-os.m4
index 199c239063..f76f907c77 100644
--- a/m4/host-os.m4
+++ b/m4/host-os.m4
@@ -1,4 +1,4 @@
-# serial 8
+# serial 9
# Copyright (C) 2001, 2003-2004, 2006, 2009-2012 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
@@ -66,7 +66,7 @@ AC_DEFUN([gl_HOST_OS],
# from $host_os, but capitalizes its first letter.
[A-Za-z]*)
os=`
- expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
+ expr "X$host_os" : 'X\([A-Za-z]\)' | LC_ALL=C tr '[a-z]' '[A-Z]'
``
expr "X$host_os" : 'X.\([A-Za-z]*\)'
`