Closed
Bug 200084
Opened 22 years ago
Closed 22 years ago
gbk1988.1989-0 is defined as GBK, but us-ascii
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: masaki.katakai, Assigned: masaki.katakai)
Details
Attachments
(2 files, 1 obsolete file)
|
1.29 KB,
patch
|
ftang
:
review+
rbs
:
superreview+
asa
:
approval1.4b+
|
Details | Diff | Splinter Review |
|
1.35 KB,
patch
|
smontagu
:
review+
rbs
:
superreview+
sspitzer
:
approval1.4b+
|
Details | Diff | Splinter Review |
In gfx/src/gtk/nsFontMetricsGTK.cpp,
"gbk1988.1989-0" is defined as GBK, but it should be us-ascii.
- { "gbk1988.1989-0", &FLG_ZHCN, &GBK },
Because of this bug, in GBK locale, UI strings are displayed
as garbage on Mozilla GTK2 build.
| Assignee | ||
Comment 1•22 years ago
|
||
proposed patch, defined USASCII with "us-ascii" and set this
to gbk1988.1989-0.
| Assignee | ||
Comment 2•22 years ago
|
||
Comment on attachment 119045 [details] [diff] [review]
patch
Brian, could you review please?
Attachment #119045 -
Flags: review?(bstell)
Comment 3•22 years ago
|
||
I'm unclear if there is a converter issue here?
Frank: would you kindly take a look at this?
Comment 4•22 years ago
|
||
are you sure? take a look at bug 82793
I think I add that line because we see the font from Sun use that name for GBK.
I cannot remember which particular font we saw but I am sure I add that line for
that particular reason. Can you talk to those people in Sun China localization
team ?
"gbk1988.1989-0" is a Chinese national standard character set which is equal to
American ASCII character set.
On solaris, "gbk1988.1989-0" is just an alternative font for us-ascii charset.
so it should not be defined as a GBK font in Mozilla.
Comment 6•22 years ago
|
||
Ervin Yan wrote:
> On solaris, "gbk1988.1989-0" is just an alternative font for us-ascii charset.
> so it should not be defined as a GBK font in Mozilla
... but shouldn't it be preferred to use the ASCII glyphs from "gbk1988.1989-0"
fonts over ASCII glyphs from a latin1-like font in chinese text ?
Comment 7•22 years ago
|
||
Frank,
In Solaris, gbk1988.1989-0 is an ASCII font used in zh.GBK locale, it doesn't
contain any GBK characters that are all double-byte, the fonts for all of the
GBK characters are gbk-0.
| Assignee | ||
Comment 8•22 years ago
|
||
Comment on attachment 119045 [details] [diff] [review]
patch
Frank, could you review please?
Attachment #119045 -
Flags: review?(bstell) → review?(ftang)
| Assignee | ||
Comment 9•22 years ago
|
||
'big5-0' is also usascii.
Summary: gbk1988.1989-0 is defined as GBK, but us-ascii → gbk1988.1989-0 and big5-0 is defined as GBK, but us-ascii
| Assignee | ||
Comment 10•22 years ago
|
||
big5-0 is also defined as usascii.
Attachment #119045 -
Attachment is obsolete: true
| Assignee | ||
Comment 11•22 years ago
|
||
Comment on attachment 121169 [details] [diff] [review]
include big5-0
Frank, could you review please?
Attachment #121169 -
Flags: review?(ftang)
Comment 12•22 years ago
|
||
Masaki: on Solaris, big5-0 is usascii font, big-1 is true BIG5 font.
but on Linux, big5-0 is true BIG5 font, and no big5-1 font.
so your new patch maybe have some problems on Linux.
| Assignee | ||
Updated•22 years ago
|
Attachment #121169 -
Attachment is obsolete: true
| Assignee | ||
Updated•22 years ago
|
Attachment #119045 -
Attachment is obsolete: false
| Assignee | ||
Comment 13•22 years ago
|
||
Thanks, Ervin.
Let's fix only gbk1988.1989-0 issue here.
Summary: gbk1988.1989-0 and big5-0 is defined as GBK, but us-ascii → gbk1988.1989-0 is defined as GBK, but us-ascii
Updated•22 years ago
|
Attachment #119045 -
Flags: review?(ftang) → review+
| Assignee | ||
Comment 14•22 years ago
|
||
Comment on attachment 121169 [details] [diff] [review]
include big5-0
rbs, could you sr= please?
Attachment #121169 -
Flags: superreview?(rbs)
Comment 15•22 years ago
|
||
Comment on attachment 119045 [details] [diff] [review]
patch
rs=rbs
rubber-stamping based what you guys said (particularly comment 5 and comment
12).
Attachment #119045 -
Flags: superreview+
Attachment #121169 -
Flags: superreview?(rbs)
Attachment #121169 -
Flags: review?(ftang)
| Assignee | ||
Comment 16•22 years ago
|
||
Comment on attachment 119045 [details] [diff] [review]
patch
I understand the risk by the change is low, I have added a new entry with the
same maner.
It will help Solaris GBK users.
Attachment #119045 -
Flags: approval1.4b?
Comment 17•22 years ago
|
||
Comment on attachment 119045 [details] [diff] [review]
patch
a=asa (on behalf of drivers) for checkin to 1.4b
Attachment #119045 -
Flags: approval1.4b? → approval1.4b+
Comment 18•22 years ago
|
||
Same change as attachment 19045 [details] [diff] [review] (which is for gfx/src/gtk/) for gfx/src/xlib
...
Comment 19•22 years ago
|
||
Comment on attachment 121730 [details] [diff] [review]
Xlib gfx version of attachment 19045 [details] [diff] [review]
Requesting r=/sr=/a= (this is the same change as the gfx/src/gtk/ patch) ...
Attachment #121730 -
Flags: superreview?(rbs)
Attachment #121730 -
Flags: review?(smontagu)
Attachment #121730 -
Flags: approval1.4b?
Comment 20•22 years ago
|
||
Comment on attachment 121730 [details] [diff] [review]
Xlib gfx version of attachment 19045 [details] [diff] [review]
r=smontagu. Why can't more of nsFontMetricsXlib.cpp and nsFontMetricsGTK.cpp be
in a common file?
Attachment #121730 -
Flags: review?(smontagu) → review+
Comment 21•22 years ago
|
||
Simon Montagu wrote:
> Why can't more of nsFontMetricsXlib.cpp and nsFontMetricsGTK.cpp be
> in a common file?
Remember that I added support for multiple physical device instances in
gfx/src/xlib ? If we port that change to gfx/src/gtk we can start merging both
codelines after that... :)
Comment 22•22 years ago
|
||
Even without thinking about merging the code we could merge all the static data
which both source files have in common, no?
Comment 23•22 years ago
|
||
Simon Montagu wrote:
> Even without thinking about merging the code we could merge all the static
> data which both source files have in common, no?
I would not recommend that for now since this usually calls for trouble with
StaticBuilds (structure names _must_ be different otherwise we break
staticbuilds). It is technically possible to do it but I would not recommend it
- that causes unneccesary trouble and is just an useless extra step on the way
to finally merge both codelines in gfx/src/x11shared/ ...
Comment 24•22 years ago
|
||
>(structure names _must_ be different otherwise we break staticbuilds)
That problem could be solved with macros, but we should probably take this whole
discussion somewhere else :-)
Comment 25•22 years ago
|
||
Simon Montagu wrote:
> > (structure names _must_ be different otherwise we break staticbuilds)
>
> That problem could be solved with macros,
or we could use |template| stuff or other fun.
> but we should probably take this whole discussion somewhere else :-)
Or just stop the discussion about such intermediate steps. We're likely merging
lots of code from gfx/src/gtk and gfx/src/xlib into gfx/src/x11shared/ - but
discussing now some "nice-looking" extra steps may result in painfull bugzilla
RFEs which only make the way to the final goal longer... much longer... ;-(
Attachment #121730 -
Flags: superreview?(rbs) → superreview+
| Assignee | ||
Comment 26•22 years ago
|
||
will check in both when we get a= for 1.4b.
Comment 27•22 years ago
|
||
Comment on attachment 121730 [details] [diff] [review]
Xlib gfx version of attachment 19045 [details] [diff] [review]
a=sspitzer
Attachment #121730 -
Flags: approval1.4b? → approval1.4b+
| Assignee | ||
Comment 28•22 years ago
|
||
Thank you all.
checked into 1.4b.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•22 years ago
|
OS: SunOS → Solaris
You need to log in
before you can comment on or make changes to this bug.
Description
•