Closed
Bug 3903
Opened 26 years ago
Closed 25 years ago
Locale- No GetPlatformLocale for Macintosh
Categories
(MailNews Core :: Internationalization, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M9
People
(Reporter: nhottanscp, Assigned: tague)
Details
Need a mapping function from a locale to
script id, lang id, region code and charset name.
Updated•26 years ago
|
Target Milestone: M4
Comment 1•26 years ago
|
||
mark this m4
Updated•26 years ago
|
Summary: No GetPlatformLocale for Macintosh → Locale- No GetPlatformLocale for Macintosh
Reporter | ||
Comment 2•26 years ago
|
||
Proposed interface for Macintosh.
class nsIMacLocale : public nsISupports {
public:
// locale to script code, language code and region code
NS_IMETHOD GetPlatformLocale(const nsString* locale, PRInt16* script, PRInt16*
lang, short* region) = 0;
// locale to charset name
NS_IMETHOD GetPlatformLocaleCharset(const nsString* locale, nsString* charset)
= 0;
// language code and region code pair to locale
NS_IMETHOD GetXPLocale(const PRInt16 lang, const PRInt16 region, nsString*
locale) = 0;
};
Comment 3•26 years ago
|
||
We should use PRInt16* instead of short* for region on GetPlatformLocale
Frank :-
The appropriate types to use are short - that is how Script, Region, etc. are
defined in the Macintosh headers. They aren't defined as PRInt16. The return
types should match what is in the system headers.
/t
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 6•25 years ago
|
||
Naoki, in what functions are we using this in Mac? Also will we be using this in M5?
Reporter | ||
Comment 7•25 years ago
|
||
There is no way that the client code can use the interface which was checked in
30 min before the tree close for M5 :-)
My plan is to integrate this for M6 also make Mac unit test available.
Tague's unit test may be able to verify this.
Comment 8•25 years ago
|
||
Tague, I'm inclined to mark this bug verified since there
seems to be no apparent way to check how this works in the
product. If you have a SelfTest program I can use to see if this
is working, I'll attempt to use it. Otherwise, rather than
having this on my plate, we should get it out of the way.
look at intl/locale/tests/nsLocaleTest. that is my self test. the self tests
build but won't run on Mac because of some changes in the registry which I
haven't nailed down yet.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
QA Contact: 1308 → 4338
Comment 10•25 years ago
|
||
I'm marking this bug fix verified without further testing on Mac which
we are not doing.
Montse,I'm going to mark it verified fixed and put it on your plate.
If you other thoughs, e.g.me doing Mac mail headers sort testing,
then send it back to me.
Comment 11•25 years ago
|
||
You verify this in other places using the RDF tree widgets (e.g., Manage
Bookmarks). I don't know if these are locale sensitive yet.
Reporter | ||
Updated•25 years ago
|
Status: VERIFIED → REOPENED
Reporter | ||
Comment 12•25 years ago
|
||
In my original request, it had script, lang and region while the implementation
doesn't have region returned. I noticed that I need a resion code when I was
debugging yhe date format interface. Sorry for the late notice but I need to
reopen this bug.
The change is just to add an additional mapping table with a look up code. Can I
do the change? I can also do the verification by using it in the date format
interface.
Assignee | ||
Comment 13•25 years ago
|
||
sure. go ahead if you feel comfortable making the changes, otherwise I have M9
work on Macintosh locale and I can take a look at this problem while I do that
work.
Reporter | ||
Comment 14•25 years ago
|
||
I probably cannot do that for M9, in case if you not finish for M9 then move to
M10 and reassign to me, thanks.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Assignee | ||
Comment 15•25 years ago
|
||
Naoki :- I added a region code to both GetPlatformLocale and GetXPLocale in the
nsIMacLocale interface. I made the corresponding changes to the other locale
functionality to keep it building, but I didn't do anything with the region code
in your services.
Reporter | ||
Updated•25 years ago
|
QA Contact: teruko → nhotta
Reporter | ||
Comment 16•25 years ago
|
||
Set myself as QA Contact.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 17•25 years ago
|
||
Tested/verified US,GB,FR,DE,IT,AU,JP using scriptable date format.
Also checked the table, doesn't seem to have any typo.
Marking as VERIFIED.
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
•