Closed
Bug 343468
Opened 18 years ago
Closed 18 years ago
font names in locales.nsi need to be utf-8 encoded
Categories
(Firefox :: Installer, defect)
Tracking
()
RESOLVED
FIXED
Firefox 2 beta1
People
(Reporter: Pike, Assigned: Pike)
References
()
Details
(Keywords: fixed1.8.1)
Attachments
(3 files, 2 obsolete files)
(deleted),
patch
|
robert.strong.bugs
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
(deleted),
image/jpeg
|
Details | |
(deleted),
image/jpeg
|
Details |
The font names in locales.nsi for zh-TW and zh-CN seem to be copied over from
the NSIS stuff in their respective encoding, but need to be in utf-8, so that
the following call to iconv succeeds.
Assignee | ||
Comment 1•18 years ago
|
||
I converted zh-CN_font from CP936 and zh-TW_font from CP950 to utf-8.
This fixes the installers-zh-CN target for me locally at least. I can't test zh-TW yet, but that should be just a matter of hours, but I don't want to wait for that.
Assignee | ||
Updated•18 years ago
|
Attachment #227955 -
Flags: review? → review?(robert.bugzilla)
Comment 2•18 years ago
|
||
It replaced by ~~~~,not in UTF-8.Is it really fixed?
Assignee | ||
Comment 3•18 years ago
|
||
Comment on attachment 227955 [details] [diff] [review]
convert from the respective codepages to utf-8
xemacs is not utf-8 enough, including the output from iconv caused a mess. Trying again.
Attachment #227955 -
Attachment is obsolete: true
Attachment #227955 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 4•18 years ago
|
||
Used eclipse for copy and paste, what a waste of resources.
Checked the output of diff with hex editor, too. It's something non-trivial, but we still need to figure out if the fonts make sense on the respective systems.
Holy, the build at http://people.mozilla.com/~axel/firefox-2.0a3.zh-CN.win32.installer.exe is updated already to the new patch.
Attachment #227956 -
Flags: review?(robert.bugzilla)
Comment 5•18 years ago
|
||
It's look like fine. :P
Shall I test in zh-TW installer?
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5)
> It's look like fine. :P
> Shall I test in zh-TW installer?
>
I can't build one just yet, that's pending on your check-ins :-), but if you have a build environment for windows, sure. (That's non-trivial to set up for the 1.8 branch, though.)
Assignee | ||
Comment 7•18 years ago
|
||
Attach the same patch as in bug 343449. This is not really a dupe of that or vice versa, the two are just really close and on the same timeline, so I'd like to land one as part of the other.
Attachment #227956 -
Attachment is obsolete: true
Attachment #227969 -
Flags: review?(robert.bugzilla)
Attachment #227956 -
Flags: review?(robert.bugzilla)
Comment 8•18 years ago
|
||
Comment on attachment 227969 [details] [diff] [review]
add ja and ko to locales.nsi, fix the encodings of zh-CN and -TW
I verified that they convert to the same characters for each font name as provided by NSIS. I believe we will need to add -cs to iconv so it doesn't fail when there are invalid characters.
Attachment #227969 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 9•18 years ago
|
||
Actually, I want it to fail on illegal chars, as they will likely break the installer if not the build system. Which is worse.
Comment 10•18 years ago
|
||
We should be able to one-off the conversion of locales.nsi though... true?
Assignee | ||
Comment 11•18 years ago
|
||
(In reply to comment #10)
> We should be able to one-off the conversion of locales.nsi though... true?
We don't really convert locales.nsi, we just pull the fontname and size, put it into the generated nlf.in, and that's then iconv'ed to baseLocale.nlf.
I hope that I got that comment right, this is half guessing.
Comment 12•18 years ago
|
||
We also use it to define whether the ui is RTL. I'll check to see how NSIS handles the file being in utf8 for setting this.
Assignee | ||
Comment 13•18 years ago
|
||
Comment on attachment 227969 [details] [diff] [review]
add ja and ko to locales.nsi, fix the encodings of zh-CN and -TW
Checked in on the trunk. gaius is green, tested the installer interface of the build in tinderbox/gaius-trunk.
As we don't expect locales to test this on the trunk soon, I'd like to land this on the branch to see if it fixes the reported bugs.
Attachment #227969 -
Flags: approval1.8.1?
Comment 14•18 years ago
|
||
Hi Axel,
Thanks,Please find attached screenshots of Simplified Chinese installer.
It works now, but the font size looks a little bit big.
btw: firefox cannot be started after installed,maybe it's another bug.
BR,Holy
Comment 15•18 years ago
|
||
(In reply to comment #14)
> btw: firefox cannot be started after installed,maybe it's another bug.
Most likely due to being built with VC 8
Comment 16•18 years ago
|
||
Comment 17•18 years ago
|
||
(In reply to comment #15)
> Created an attachment (id=227998) [edit]
> firefox 1.5 installer screenshots,font looks better
Making the font size smaller will most likely fix this.
Updated•18 years ago
|
Flags: blocking-firefox2?
Comment 18•18 years ago
|
||
--> blocking Fx2beta1, as per l10n strategy for this release
Flags: blocking-firefox2? → blocking-firefox2+
Updated•18 years ago
|
Attachment #227969 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 19•18 years ago
|
||
fixed on trunk and branch, please open separate bugs for particular font and size requests.
You need to log in
before you can comment on or make changes to this bug.
Description
•