Locale support, locale name to charset name mapping

VERIFIED FIXED in M10

Status

MailNews Core
Internationalization
P3
normal
VERIFIED FIXED
19 years ago
9 years ago

People

(Reporter: nhottanscp, Assigned: tague)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: done)

(Reporter)

Description

19 years ago
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

19 years ago
Target Milestone: M6
(Reporter)

Comment 1

19 years ago
This is needed for M6.
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED

Comment 2

19 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.
(Assignee)

Comment 3

19 years ago
bulk move to M9
(Assignee)

Updated

18 years ago
Target Milestone: M9 → M10
(Assignee)

Comment 4

18 years ago
not going to make m9, move to m10
(Assignee)

Updated

18 years ago
Whiteboard: HELP WANTED
(Assignee)

Updated

18 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
Whiteboard: HELP WANTED → done
(Assignee)

Comment 5

18 years ago
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

18 years ago
Status: RESOLVED → VERIFIED

Comment 6

18 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.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.