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)

defect

Tracking

(Not tracked)

VERIFIED FIXED

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).
Target Milestone: M6
This is needed for M6.
Status: NEW → ASSIGNED
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
Target Milestone: M9 → M10
not going to make m9, move to m10
Whiteboard: HELP WANTED
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)
Status: RESOLVED → VERIFIED
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.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.