Closed Bug 27826 Opened 26 years ago Closed 25 years ago

font pref UI does not stick to last choice if contains non ASCII

Categories

(SeaMonkey :: Preferences, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ftang, Assigned: matt)

References

Details

(Keywords: relnote, Whiteboard: [PDT+]03/06-pinged amasri to verify (since fix is in hand))

I have not try window or linux yet. If the font face name contains non ASCII (which is very common on non English Mac and Window), the Font preference UI will show those name in the menu, but it won't show it as default next time you open it. Step to reproduce this 1. prepare your environment- In MacOS 8.5 and up, install multilingual support from the English (or other) MacOS CD, you can either do this in the system installation time or later. Choice custom installation and pick the language you want. If you have already done this then the keyboard menu in the right upper corner (left to the application list) will show up 2. bring up Preference 3. click Font tab 4. Select "ja" in the "Fonts for" field 5. Select "Osaka" for the Serif font 6. Select some other font which have non ASCII name for the Monospace font 7. Click OK 8. Open the preference, click font tab, select "ja" again Exepct result, the Serif is default to "Osaka" as the one you pick last time, however the Monospace is default to the non ASCII font name you pick last time too. Actual result, only the Serif is default to Osaka now. The Monospace is default to blank. It does not matter Serif or Monospace- the non ASCII font name won't be sticky. I suspect it is related to UTF-8 and Pref. Somehow, the set pref and get pref does not round trip the UTF-8 conversion. Probably one treat it as UTF-8 and the other treat it as Latin 1.
I try Window build in Teruko's cube. It show the same thing. It remember ASCII font name but not NON-ASCII font name in Japanese window.
Target Milestone: M15
Blocks: 7521
more finding. When I change the font pref to some non ASCII name, the data write out to the pref.js is not in UTF-8. It looks like all the unicode get drop off the high 8 bits.
Matt, this bug concerns the way we are writing the prefs out to prefs.js.
Assignee: erik → matt
Keywords: beta1
This makes font prefs feature unusable on Japanese (and other localized) Windows and Mac systems since the Japanese (and other language) fonts use non-ASCII names. Nominating for Beta1.
Whiteboard: [PDT+]
Whiteboard: [PDT+] → [PDT+] 2/24
Clearing PDT+ for reconsideration. This seems like something we could release note.
Whiteboard: [PDT+] 2/24 → 2/24
Whiteboard: 2/24 → [PDT-]2/24
same issue as 28464. Need different fix. Here is the patch - Change the Platform/OS to all cvs server: Diffing content Index: content/pref-fonts.js =================================================================== RCS file: /m/pub/mozilla/xpfe/components/prefwindow/resources/content/pref-fonts .js,v retrieving revision 1.3 diff -c -r1.3 pref-fonts.js *** pref-fonts.js 2000/02/11 04:41:33 1.3 --- pref-fonts.js 2000/02/25 18:15:50 *************** *** 165,171 **** { if (pref) { ! var selectVal = pref.CopyCharPref(fontPrefstring ); } } catch(ex) --- 165,171 ---- { if (pref) { ! var selectVal = pref.CopyUnicharPref(fontPrefstr ing); } } catch(ex)
OS: Mac System 8.6 → All
Hardware: Macintosh → All
the patch is here. Please reconsider take this as beta1
Whiteboard: [PDT-]2/24 → 2/24
BobJ, please raise this at PDT meeting.
Since font names on Win and Mac in Japan (and elsewhere) are non-ASCII, this bug totally breaks the ability of users to change fonts using the font prefs dialog. This is bogus to release note for a Beta1. The patch is a one-line change in the Javascript to call the correct method to write the prefs file.
Whiteboard: 2/24 → 2/25
Minimum risk; maximum benefit. Voted for this bug.
->teruko's group
QA Contact: sairuh → teruko
PDT+ assuming this is a very low risk fix
Whiteboard: 2/25 → [PDT+] 2/25
Hi, Frank: Would you provide a QA test plan for IQA so all possible paths are covered? Since the change is in *.js, IQA shall be able to apply the patch to install directory and run the test. I am working from home and do not have non-English OS here. Thanks
Moving to PDT-. Did not make the 02/25 deadline for beta1. Putting on the relnote keyword.
Keywords: relnote
Whiteboard: [PDT+] 2/25 → [PDT-] 2/25
Clearing PDT-. fix in hand 02/28. Intl REALLY wants this in! Per bobj "This makes font preferences unusable for Japanese users. This is bad, and it's not reasonable to leave this out of Beta1!"
Whiteboard: [PDT-] 2/25 → 2/25
fix in hand. Awaiting approval. Communications error why this didn't get checked in before.
Status: NEW → ASSIGNED
Whiteboard: 2/25 → [PDT+] (since fix is in hand)
a=bobj thanks.
fixed sorry about that
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Changed QA contact to amasri@netscape.com.
QA Contact: teruko → amasri
added dependency on 25556: Mac only. Since I can't save changes to font prefs (ok button doesn't work after making changes), I can't verify this bug fix on Mac.
Status: RESOLVED → REOPENED
Depends on: 25556
Resolution: FIXED → ---
also checked on Win98-ja. Was unable to set font prefs, so I can't verify whether this bug is fixed there, either.
This change when in. The reason ok button does not close is because we changed browser.sreen_resolution from a string to an int. You need to blow that pref out of your prefs.js to get the ok window to work. Blow your prefs.js file away if that does not work. thx http://lxr.mozilla.org/seamonkey/source/xpfe/components/prefwindow/resources/con﷒0
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
not fixed with 2000020308, Mac: Now, neither preference is retained. after closing and reopening window, default fonts for ja are both .Osaka Bold, the first item in the list.
Status: RESOLVED → REOPENED
No longer depends on: 25556
Resolution: FIXED → ---
i'm not sure why this is happening and not working. Can i push this bug off to some one else since that last fix did not work.
Thanks, Allan. The font settings are not retained on Windows 3/2/2000 build, either. If this doesn't get fixed, we won't be able to change fonts at all by UI. That will be terrible.
I found the problem. You check in "CopyUniCharPref" but my patc is "CopyUnicharPref" Notice it is Uni'c'har ,not Uni'C'har .... lower case 'c' not upper case 'C' . Once you change that line it work. If you don't change that line, not only the non ASCII font won't be sticky, the ASCII won't be sticky neither. Check that in. r=ftang
a=bobj
*** Bug 30323 has been marked as a duplicate of this bug. ***
I fix and check in for matt
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Whiteboard: [PDT+] (since fix is in hand) → [PDT+]03/06-pinged amasri to verify (since fix is in hand)
verified fixed on Mac 2000030508
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.