Ticket #544 (new Bug report)

Opened 13 years ago

Last modified 12 years ago

Locale error on startup with XP

Reported by: halln@… Owned by:
Priority: low Milestone: Not yet assigned to a Milestone
Component: Auth server, Other Version:
Keywords: Cc:

Description

Hi,

The installer reported a successful install.

I am unable to enter due to the following error:

Warning in /classes/Locale.php setCurentLocale: Unable to setlocale() to parameter: en_US. I tried en_US.UTF-8, en_US, en.UTF-8, en, and got return value: English_United States.1252, current locale is: English_United States.1252

It seems to it does not understand this is the same as en_US

Can i work around it?

Nick

Change History

Changed 13 years ago by benoitg

Damn, not that simply. Locale names have a different structure on windows. (For reference, see  http://ca3.php.net/setlocale)

To fix this, the logical choice would be to redefine the array in getAvailableLanguageArray() to store the posible locale names for setlocale, instead of trying to guess them in Locale::setCurrentLocale()

Changed 12 years ago by networkfusion

suggest we look at the new php extension  ext/intl

Note: See TracTickets for help on using tickets.