From: "Llelan D." Date: 2012-05-10T06:40:03+09:00 Subject: Locale number formatting I've searched and searched for this and have not found an answer. ruby 1.9.3p194 (2012-04-20) [i386-mingw32] MSWindows 7 How do you format a number to a current locale? (ie: 1000 -> 1,000 for 'en') I found the gem package "locale" (locale-2.0.5), but after installation the advised simplest example in the HowTo: ---------------------- require 'locale' Locale.current ---------------------- displays when run ---------------------- C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- dl/win32 (LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/locale/driver/win32.rb:16:in `' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems custom_require.rb:36:in `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/locale.rb:32:in `require_driver' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/locale.rb:74:in `init' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/locale.rb:90:in `driver_module' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/locale.rb:178:in `current' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/locale.rb:212:in `candidates' from locale.rb:4:in `
' ---------------------- Even so, the description of the package leaves no clue as to how or even if this package provides a way to format data to a locale. Any help with this would be greatly appreciated. -- Posted via http://www.ruby-forum.com/.