Ticket #2571 (closed defect: fixed)
wxLocale::GetSystemEncodingName() returns empty string under OS X
| Reported by: | pitrou | Owned by: | csomor |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | wxOSX (any toolkit) | Version: | 2.9-svn |
| Keywords: | simple | Cc: | pitrou, csomor |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
On MacOS X, wx.Locale.GetSystemEncodingName() returns
the empty string whereas wx.Locale.GetSystemEncoding()
returns the proper value.
This is a problem when you need to use the standard
Python methods unicode.encode() and str.encode(). They
expect the literal name of the encoding (e.g.
('utf-8')), not a wx-custom numeric values.
GetSystemEncodingName() does return the proper value
under Linux and Windows.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

