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)

x86
OS/2
defect
Not set
trivial

Tracking

()

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

Details

Attachments

(1 file)

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.
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)
I wonder why this assertion is there at all?

https://bugzilla.mozilla.org/show_bug.cgi?id=102516
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 on attachment 177668 [details] [diff] [review]
Replace strcmp with stricmp

r=jshin
Attachment #177668 - Flags: review?(jshin1987) → review+
Attachment #177668 - Flags: superreview?(mkaply) → superreview+
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: