Time.now and System::Text::EncoderFallbackException

Hi all,

I’ve got a strange problem with Time.now (and System.DateTime.Now, of
course) when the current culture is set to ‘ru-RU’, ‘pl-PL’ or some
other cultures:

IronRuby on .NET 2.0.50727.3082
Copyright © Microsoft Corporation. All rights reserved.

include System::Globalization
=> Object

include System::Threading
=> Object

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(‘ru-
=> ru-RU

=> mscorlib:0:in GetBytes': Value does not fall within the expected range. (Sys tem::Text::EncoderFallbackException) from mscorlib:0:inGetBytes’
from :0

Can anybody help?

Maxim Maslov

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs