[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: str1 < str2 does not respect locale
From: |
Chet Ramey |
Subject: |
Re: str1 < str2 does not respect locale |
Date: |
Wed, 8 Apr 2009 08:35:53 -0400 |
> Configuration Information [Automatically generated, do not change]:
> Machine: hppa2.0
> OS: hpux10.20
> Compiler: /net/appl/gcc-3.3/bin/gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='hppa2.0'
> -DCONF_OSTYPE='hpux10.20' -DCONF_MACHTYPE='hppa2.0-hp-hpux10.20'
> -DCONF_VENDOR='hp' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash'
> -DSHELL -DHAVE_CONFIG_H -DHPUX -I. -I. -I./include -I./lib -I./lib/intl
> -I/var/tmp/bash-4.0/lib/intl -g -O2
> uname output: HP-UX imadev B.10.20 A 9000/785 2008897791 two-user license
> Machine Type: hppa2.0-hp-hpux10.20
>
> Bash Version: 4.0
> Patch Level: 10
> Release Status: release
>
> Description:
> Strings compared with [[ string1 < string2 ]] are supposed to use
> the current locale, but they don't.
It's a documentation error (but a long-standing one). The code has
always used strcmp, not strcoll.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/