Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 5561 - Locale support, locale name to charset name mapping
: Locale support, locale name to charset name mapping
Product: MailNews Core
Classification: Components
Component: Internationalization (show other bugs)
: Trunk
: All All
: P3 normal (vote)
: M10
Assigned To: tague
: Katsuhiko Momoi
Depends on:
  Show dependency treegraph
Reported: 1999-04-27 11:35 PDT by nhottanscp
Modified: 2008-07-31 01:22 PDT (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---


Description nhottanscp 1999-04-27 11:35:23 PDT
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,
Comment 1 nhottanscp 1999-04-27 11:35:59 PDT
This is needed for M6.
Comment 2 Frank Tang 1999-05-18 17:41:59 PDT
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.
Comment 3 tague 1999-06-08 13:37:59 PDT
bulk move to M9
Comment 4 tague 1999-07-23 13:00:59 PDT
not going to make m9, move to m10
Comment 5 tague 1999-08-25 19:10:59 PDT
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)
Comment 6 Katsuhiko Momoi 1999-10-21 21:09:59 PDT
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

Note You need to log in before you can comment on or make changes to this bug.