in reply to Re: Using setlocale() on Windows with utf-8 support
in thread Using setlocale() on Windows with utf-8 support
And here's what I get using perl-5.38.0 that was built with the same Visual Studio 2022 compiler:D:\C>try.exe German.utf8 German_Germany.utf8: März (5 bytes)
But if I use my perl-5.38.0 that was built with a mingw-w64 port of gcc-13.1.0, then I get:D:\>perl -MPOSIX -wle "$loc = POSIX::setlocale( LC_ALL, 'German.utf8' +); print $loc;" German_Germany.utf8
And if I use that gcc-13.1.0 to build your C program into try_gcc.exe, then I get:D:\>perl -MPOSIX -wle "$loc = POSIX::setlocale( LC_ALL, 'German.utf8' +); print $loc;" Use of uninitialized value $loc in print at -e line 1.
From which I deduce that the behavior you need has not yet been ported to the mingw-w64 toolchain.D:\C>try_gcc.exe German.utf8 (null): March (5 bytes)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using setlocale() on Windows with utf-8 support
by gflohr (Acolyte) on Jul 19, 2023 at 17:51 UTC | |
by syphilis (Archbishop) on Sep 11, 2023 at 11:32 UTC |