On Sun, Jul 23, 2006 at 09:05:43PM +0200, Helge Kreutzmann wrote: >I am trying to write a locale aware program. As I understand the >perl documentation (mainly the man page perllocale) perl is currently >dealing only with output (I will discuss this man page in a different >wishlist bug later). So I attempt to construct an input routine.
I'm not sure if this is a documentation bug or an implementation one. The perllocale(1) manual page states that: In the scope of "use locale", Perl obeys the "LC_NUMERIC" locale information [...] although the locale(3) man page mentions only LC_CTYPE and LC_COLLATE. It appears that the latter is correct: $ LANG=de_DE perl -Mlocale -le 'print 2/5' 0.4 $ LANG=de_DE perl -MPOSIX=setlocale,LC_ALL -le 'setlocale LC_ALL, ""; print 2/5' 0,4 $ LANG=de_DE perl -MPOSIX=setlocale,LC_NUMERIC -le 'setlocale LC_NUMERIC, ""; print 2/5' 0,4 an explicit setlocale is required to change the behaviour of gcvt . --bod -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]