I need a mapping support for locale name to charset name in order to use native API (for Macintosh, Unix and Win95/98). Currently, collation and date format only works for Latin1 except WinNT because of the lack of this support. Proposed function is something like this. nsresult map_func(const nsString* locale, nsString* charset); I do not care which interface to support this (i.e. locale factory, platformlocale).
This is needed for M6.
I have implement similar thing in uconv. Take a look at nsIPlatformCharset and the implementation of nsWinCharset.cpp, nsMacCharset.cpp and nsUNIXCharset.cpp. This implementation currently have all the mapping, but it only return the ACP/SystemScript/User Locale. We should extend it to return any locale.
bulk move to M9
not going to make m9, move to m10
Status: ASSIGNED → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → FIXED
Whiteboard: HELP WANTED → done
checked in an implementation today (8/25/99) for all 3 platforms. the API is implemented as part of the nsIPlatformCharset interface. create an instance of nsIPlatformCharset and call GetDefaultCharsetForLocale. (also removing bobj from cc list)
Things like collation and date/time format have been working on Mac/Win98/Win95 for some time now. That should be proof enough for this fix.
You need to log in before you can comment on or make changes to this bug.