Closed
Bug 5561
Opened 25 years ago
Closed 25 years ago
Locale support, locale name to charset name mapping
Categories
(MailNews Core :: Internationalization, defect, P3)
MailNews Core
Internationalization
Tracking
(Not tracked)
VERIFIED
FIXED
M10
People
(Reporter: nhottanscp, Assigned: tague)
Details
(Whiteboard: done)
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).
Reporter | ||
Updated•25 years ago
|
Target Milestone: M6
Reporter | ||
Comment 1•25 years ago
|
||
This is needed for M6.
Comment 2•25 years ago
|
||
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.
Status: ASSIGNED → RESOLVED
Closed: 25 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)
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 6•25 years ago
|
||
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.
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•