glibc locale handling broken?

Patryk Zawadzki patrys at pld-linux.org
Mon Jun 23 16:55:23 CEST 2008


Consider the attached file. The expected behavior is for it to return
four time the exact same set of messages. GNU strptime is guaranteed
to parse POSIX C-formatted strings even if the current locale is not
C. However that's not what I get:

[patrys at purrr Desktop]$ gcc test.c -o test
[patrys at purrr Desktop]$ ./test
DEBUG: Parsed as 00-00-00
DEBUG: Parsed as 23-05-108
DEBUG: Parsed as 23-05-108
DEBUG: Parsed as 23-05-108

The same was tested on other distros and gives four identical results
while on PLD the first one results in a parsing error.

-- 
Patryk Zawadzki
PLD Linux Distribution
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 882 bytes
Desc: not available
Url : /mailman/pipermail/pld-devel-en/attachments/20080623/9b0a7b4c/attachment.bin 


More information about the pld-devel-en mailing list