Open
Bug 197271
Opened 22 years ago
Updated 2 years ago
Intl printer name(e.g., Japanese name) is displayed as garbage in about:config
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
NEW
Future
People
(Reporter: kazhik, Unassigned)
Details
(Keywords: intl)
Attachments
(2 obsolete files)
Japanese printer name is displayed as garbage in about:config.
Screenshot:
http://bugzilla.mozilla.gr.jp/attachment.cgi?id=1530&action=view
Original report in Bugzilla-jp:
http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=3020
Related bug: bug 107418
Reporter | ||
Comment 1•22 years ago
|
||
Reproduced with 2003031108-trunk/WinXP.
Comment 2•21 years ago
|
||
Now we use printe name of OS's that maybe include non-ascii code for prefernce
name of printer
and our preferences name now cannot include non-ascii code.
All arguments of methods for interfaces of prefs use 'char' for preference name.
I think that there are two approach.
1st: In prefs, we move printer name to value.
2nd: we add method for unicode preference name.
I hope that someone add 'intl' to keywords.
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 3•20 years ago
|
||
same Fx.
Component: Preferences → Preferences: Backend
Product: Mozilla Application Suite → Core
Comment 4•20 years ago
|
||
taking.
Assignee: bugs → masayuki
Component: Preferences: Backend → Internationalization
Keywords: intl
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta3
Comment 5•20 years ago
|
||
This patch will fix to save to prefs.js only.
It will not fix view of about:config.
Attachment #184768 -
Flags: review?(jshin1987)
Comment 6•20 years ago
|
||
about:config problem:
http://lxr.mozilla.org/seamonkey/source/toolkit/components/viewconfig/content/config.js#260
260 function prefObject(prefName, prefIndex)
261 {
262 this.prefCol = prefName;
263 }
There is UTF-8 string in prefName.
We need to convert UTF-8 to UCS2.
But I don't know how to convert in Javascript.
Status: NEW → ASSIGNED
Comment 7•20 years ago
|
||
Comment on attachment 184768 [details] [diff] [review]
fix for file handling
We really have to go through the tree to examine every use of 'WithCoversion'
and 'NS_ConvertUnicodeToASCII'.
Attachment #184768 -
Flags: review?(jshin1987) → review+
Updated•20 years ago
|
Attachment #184768 -
Flags: superreview?(bzbarsky)
Comment 8•20 years ago
|
||
I think that we need to implement nsIUTF8ConverterService::ConvertStringFromUTF8.
Comment 9•20 years ago
|
||
Oh, convertStringToUTF8 is converting native code(string) to UTF-8. Therefore,
convertStringFromUTF8 should be UTF-8 to native code conveter.
But I need UTF-8 to wstring converter...
Jungshik, can you implement it?
Comment 10•20 years ago
|
||
Comment on attachment 184768 [details] [diff] [review]
fix for file handling
Is there a reason not to be using AppendUTF16toUTF8() here instead of messing
around with this temporary variable?
Comment 11•20 years ago
|
||
Oh, I didn't know such function...
I re-create the patch. Please wait.
Updated•20 years ago
|
Attachment #184768 -
Flags: superreview?(bzbarsky) → superreview-
Comment 12•20 years ago
|
||
Attachment #184768 -
Attachment is obsolete: true
Attachment #184813 -
Flags: superreview?(bzbarsky)
Attachment #184813 -
Flags: review?(jshin1987)
Comment 13•20 years ago
|
||
Comment on attachment 184813 [details] [diff] [review]
fix for file handling2
Carrying over jshin's r=, and sr=bzbarsky
Attachment #184813 -
Flags: superreview?(bzbarsky)
Attachment #184813 -
Flags: superreview+
Attachment #184813 -
Flags: review?(jshin1987)
Attachment #184813 -
Flags: review+
Updated•20 years ago
|
Attachment #184813 -
Flags: approval1.8b3?
Updated•20 years ago
|
QA Contact: bugzilla → nobody
Comment 14•20 years ago
|
||
Comment on attachment 184813 [details] [diff] [review]
fix for file handling2
a=shaver
Attachment #184813 -
Flags: approval1.8b3? → approval1.8b3+
Comment 15•20 years ago
|
||
checked-in.
But we have about:config rendering problem.
Updated•20 years ago
|
Attachment #184813 -
Attachment is obsolete: true
Comment 16•20 years ago
|
||
I thought we only supported ASCII pref names... (and that the rest worked sorta
by accident)...
(http://lxr.mozilla.org/seamonkey/source/modules/libpref/public/nsIPrefBranch.idl
uses string as the data type, which is ASCII only)
Comment 17•20 years ago
|
||
A design of nsIPrefBranch is very bad.
Because it uses string (not wstring) for each parameter of pref names.
But, we are using UTF-8 in pref.js. So we can use unicode by char*.
I think we can solve this problem...
# But I don't know how to solve it.
Comment 18•20 years ago
|
||
I created the function that converts UTF-8 to UTF-16.
And I inserted the process to here.
http://lxr.mozilla.org/seamonkey/source/toolkit/components/viewconfig/content/config.js#262
260 function prefObject(prefName, prefIndex)
261 {
262 this.prefCol = prefName;
263 }
But it doesn't work fine...
Updated•20 years ago
|
Summary: Japanese printer name is displayed as garbage in about:config → Intl printer name(e.g., Japanese name) is displayed as garbage in about:config
Updated•20 years ago
|
Target Milestone: mozilla1.8beta3 → Future
Comment 19•20 years ago
|
||
>A design of nsIPrefBranch is very bad.
>Because it uses string (not wstring) for each parameter of pref names.
well, it just does not allow non-ASCII pref names. that does not seem like a bad
design in itself. it seems to me like the printing code is broken for setting
prefs with non-ASCII names.
(non-ASCII values are supported via getComplexPref/nsISupportsString)
in theory you could, from JS, use nsIScriptableUnicodeConverter to convert the
name from UTF-8, but that sucks.
Updated•20 years ago
|
Assignee: masayuki → nobody
Status: ASSIGNED → NEW
QA Contact: nobody → masayuki
Updated•15 years ago
|
QA Contact: masayuki → i18n
Comment 20•6 years ago
|
||
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•