Closed
Bug 422789
Opened 17 years ago
Closed 17 years ago
reduce narrow windows API calls in uconv
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: blassey, Assigned: crowderbt)
References
Details
Attachments
(1 file, 1 obsolete file)
1.54 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #309235 -
Flags: review?(smontagu)
Comment 1•17 years ago
|
||
Comment on attachment 309235 [details] [diff] [review]
directy from "other" patch on bug 418703
>- if (GetLocaleInfo(localeAsLCID, LOCALE_IDEFAULTANSICODEPAGE, acp_name, sizeof(acp_name))==0) {
>+ if (GetLocaleInfoW(localeAsLCID, LOCALE_IDEFAULTANSICODEPAGE, acp_name, sizeof(acp_name))==0) {
> return NS_ERROR_FAILURE;
> }
> nsAutoString acp_key(NS_LITERAL_STRING("acp."));
>- acp_key.AppendWithConversion(acp_name);
>+ acp_key.Append(acp_name);
So, my first reaction to this was that it's moving in the wrong direction and I would rather see a patch that keeps the narrow API and makes acp_key a nsCAutoString. I see that the question "why are we doing this?" was already asked and answered in bug 418703 comment 44, but I still have my doubts about this specific case, because it seems self-contradictory: if Windows Mobile has no narrow APIs, when are we going to be using this function? Does WM even have an ANSI code page?
Reporter | ||
Comment 2•17 years ago
|
||
WM does have an ANSI code page. Its not lacking support for narrow chars.
on all windows platforms function() gets defined to functionA() of functionW() depending on whether or not UNICODE is defined.
on windows 95/98/ME, fuctionA works and fuctionW returns ERROR_CALL_NOT_IMPLEMENTED
on windows 2000/XP/Vista functionW works and functionA calls functionW after a conversion
on windows mobile functionW works and functionA doesn't link
Comment 3•17 years ago
|
||
Comment on attachment 309235 [details] [diff] [review]
directy from "other" patch on bug 418703
r=me, but I filed bug 423828 on maybe removing this altogether
Attachment #309235 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 4•17 years ago
|
||
Original patch had a buffer bug, this fixes that and reworks some spacing, and moves one declaration closer to where it is used. Sorry to ask for mostly-trivial re-review, but there it is.
Assignee: nobody → crowder
Attachment #309235 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #332997 -
Flags: review?(smontagu)
Updated•17 years ago
|
Attachment #332997 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 5•17 years ago
|
||
changeset: 16564:f5016884eec4
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•