Closed Bug 266839 Opened 20 years ago Closed 17 years ago

Opera pref. migration code treats UTF-8 as 'ASCII'

Categories

(Firefox :: Migration, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jshin1987, Assigned: jshin1987)

Details

(Keywords: intl)

Attachments

(2 files)

This is similar to bug 246403. SetWString  uses 'AssignWithConversion' thta
inflates each byte in C strings to a 16-bit PRUnichar. SetFile also assumes that
'paths' in the opera pref. file is in the native file system encoding when it's
actully in UTF-8. 
 
A patch coming up.
Attached patch patchSplinter Review
fixes SetWString and SetFile
Comment on attachment 163948 [details] [diff] [review]
patch

asking for r/sr
Attachment #163948 - Flags: superreview?(bugs)
Attachment #163948 - Flags: review?(smontagu)
Comment on attachment 163948 [details] [diff] [review]
patch

SetFile() may not work until bug 256410 is properly fixed.

SetWString should just work as it is.
Attachment #163948 - Flags: superreview?(bugs)
Attachment #163948 - Flags: review?(smontagu)
Comment on attachment 163948 [details] [diff] [review]
patch

Asking for r/sr.

The problem in the previous comment has been sorta resolved.(or was not much a issue in the first place).
Attachment #163948 - Flags: superreview?(darin)
Attachment #163948 - Flags: review?(mconnor)
Attachment #163948 - Flags: superreview?(darin) → superreview+
the trunk replaced 'AssignWithConversion' with 'NS_ConvertASCIItoUTF16', which is still wrong. I replaced it with 'NS_ConvertUTF8toUTF16' as in my previous patch. This was well tested back in September. 

Mike, pls take a moment to review it. 
Carrying over darin's sr because the patch is virtually identical.
Attachment #250130 - Flags: superreview+
Attachment #250130 - Flags: review?
Comment on attachment 250130 [details] [diff] [review]
patch updated to the trunk

sorry for bug spam. i don't like bugzilla's new behavior of not prompting to pick one among multiple matches....
Attachment #250130 - Flags: review? → review?(mconnor)
Attachment #163948 - Flags: review?(mconnor)
Attachment #250130 - Flags: review?(mconnor) → review+
This was checked in 2007-01-06
http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/browser/components/migration/src/nsOperaProfileMigrator.cpp&rev=1.71&root=/cvsroot&mark=344,375#339

-> FIXED
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: