Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Perl, Gtk2 and locale — a bit of a mess

by Ralesk (Pilgrim)
on Jul 11, 2013 at 13:31 UTC ( #1043725=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl, Gtk2 and locale — a bit of a mess
in thread Perl, Gtk2 and locale — a bit of a mess

Yeah, sorry, just noticed that; if anything it doesn't change a thing.

More precisely, this is what happens in the code now:

use POSIX qw/strftime setlocale/; BEGIN { ## To hopefully make it happen way before Gtk2 init setlocale(POSIX::LC_ALL(), "en_US.UTF-8"); } use Glib qw/FALSE TRUE/; use Gtk2 -init;

And on my coworker’s computer (who uses Hungarian locale to begin with, on Fedora, GTK 3 desktop), we get commas, on my computer (English locale, KDE desktop, but in the shell the locale is set to Hungarian) we get periods.

Except this is only with the software we’re making. The example one-liners above work identically on both machines.


Comment on Re^2: Perl, Gtk2 and locale — a bit of a mess
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2014-07-26 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls