Closed
Bug 286492
Opened 20 years ago
Closed 20 years ago
Silence assertion "found non euro modifier" in OS/2 debug builds
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: mozilla, Assigned: mozilla)
Details
Attachments
(1 file)
|
928 bytes,
patch
|
jshin1987
:
review+
mkaply
:
superreview+
|
Details | Diff | Splinter Review |
My locale is set to LANG=en_GB_EURO which is valid on OS/2 even with the all capital "EURO". The code that I copied from Unix in bug 260427 assumed full posix validity and a lower case "euro" and so gives an assertion in line 268 of intl/locale/src/os2/nsOS2Locale.cpp.
| Assignee | ||
Comment 1•20 years ago
|
||
Hmm, I don't think it really matters or is used anywhere else, so I just silenced the assertion by using case insensitive compare. I hope this is correct. Another possibility would be to compare against EURO... Btw, the OS/2 locales are listed on <http://borgendale.com/locale/locitem.htm>.
Assignee: smontagu → mozilla
Status: NEW → ASSIGNED
Attachment #177668 -
Flags: superreview?(mkaply)
Attachment #177668 -
Flags: review?(jshin1987)
Comment 2•20 years ago
|
||
I wonder why this assertion is there at all? https://bugzilla.mozilla.org/show_bug.cgi?id=102516
| Assignee | ||
Comment 3•20 years ago
|
||
I guess it is to warn of strange locales with invalid extra parts when debugging this part. That kind of worked. Since I discovered this message in the debug build some time ago I tried to find out more about OS/2 locales, if lower case _euro is reqired. It doesn't seem to, but neither could I find info if upper case _EURO is required, so stricmp is the best option. This and the other asserts don't really hurt...
Comment 4•20 years ago
|
||
Comment on attachment 177668 [details] [diff] [review] Replace strcmp with stricmp r=jshin
Attachment #177668 -
Flags: review?(jshin1987) → review+
Updated•20 years ago
|
Attachment #177668 -
Flags: superreview?(mkaply) → superreview+
Comment 5•20 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•