/[thuban]/trunk/thuban/Thuban/UI/about.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2478 by bh, Fri Dec 17 18:48:49 2004 UTC revision 2528 by bernhard, Thu Jan 20 13:14:14 2005 UTC
# Line 169  def unicodeToLocale(unicodeStr): Line 169  def unicodeToLocale(unicodeStr):
169      # that's not direcly usable (it's missing a "cp" at the beginning).      # that's not direcly usable (it's missing a "cp" at the beginning).
170      # getdefaultlocale does return a usable encoding name so we use that      # getdefaultlocale does return a usable encoding name so we use that
171      # instead.      # instead.
172      return unicodeStr.encode(getdefaultlocale()[1])      locale=getdefaultlocale()[1]
173        if locale is None:
174            locale = 'ascii'
175        return unicodeStr.encode(locale,'replace')

Legend:
Removed from v.2478  
changed lines
  Added in v.2528

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26