[fxruby-users] FXApp & Time localization

Philippe Lang philippe.lang at attiksystem.ch
Tue Dec 4 02:48:37 EST 2007


Here is small test program:

require 'rubygems'
require 'fox16'

puts Time.now

$app = Fox::FXApp.new

puts Time.now

Here is what it gives on my computer:

Tue Dec 04 08:40:14 +0100 2007
mar. dÚc. 04 08:40:14 +0100 2007

After FXApp is instanciated, the Time class is suddenly being localized, and this breaks a few things elsewhere is my program.

I'm a french speaker, and second line means that the week day is "mardi", and month is "décembre". Unfortunately, "é" is not printed correctly in my windows console. You get this "Ú" instead.

Can anyone tell me me what happens here? Is there a workaround?


More information about the fxruby-users mailing list