[Patches] [ python-Patches-1118341 ] unknown locale: lt_LT (patch)

SourceForge.net noreply at sourceforge.net
Sun Feb 27 23:14:35 CET 2005


Patches item #1118341, was opened at 2005-02-08 04:39
Message generated for change (Comment added) made by nerijus
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1118341&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
>Priority: 8
Submitted By: Nerijus Baliunas (nerijus)
Assigned to: Nobody/Anonymous (nobody)
Summary: unknown locale: lt_LT (patch)

Initial Comment:
When running wxPython app I get:
...
    from wx._core import *
  File
"/usr/lib/python2.3/site-packages/wx-2.5.4-gtk2-ansi/wx/_core.py",
line 11035, in ?
    default = locale.getdefaultlocale()[1]
  File "/usr/lib/python2.3/locale.py", line 346, in
getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.3/locale.py", line 280, in
_parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: lt_LT

Attached patch helps.
I also changed Latvian, as ISO8859-13 is an official
standard in both Latvia and Lithuania, and Estonian, as
they use ISO8859-15 now. Also added Windows language
identifiers for all 3 languages.

It can be applied to both 2.3 and 2.4.

----------------------------------------------------------------------

>Comment By: Nerijus Baliunas (nerijus)
Date: 2005-02-28 00:14

Message:
Logged In: YES 
user_id=3416

I'm increasing priority, as I have real world application
(OpenDict using wxPython) not starting w/o this patch:
$ opendict 
...
ValueError: unknown locale: lt_LT

It's really a very simple patch, please apply it to both 2.3
and 2.4.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1118341&group_id=5470


More information about the Patches mailing list