My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
New issue | Search
for
| Advanced search | Search tips
Issue 9: find some way to get the Calendar class to initialize itself from the current locale
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  bear42
Closed:  Feb 2007
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by bear42, Oct 09, 2006
Currently the Calendar class initializes itself to the default Constants
class locale (which initializes itself to en_US if not told otherwise).

This means that if parsedatetime is started in a locale that isn't en_US
the Calendar object will be set to en_US.

Question is this: should Calendar change to have a flag that is passed to
Constants() init routine or update the docs to point out the issue so the
caller knows if they want something other than en_US they have to set it up.

Comment 1 by bear42, Feb 14, 2007
I've changed how this works - now you can specify a localeID and also a
fallbackLocale list.  If the localeID is None and PyICU is available, the default
locale is used.

If that fails, each locale specified in fallbackLocales is tried until one works.

If all that fails, then en_US is used

fixed in svn trunk and will appear in 0.8.3

Status: Fixed
Sign in to add a comment

Hosted by Google Code