selfserv needs to be usable for i18n testing

NEW
Unassigned

Status

NSS
Tools
P3
normal
18 years ago
4 years ago

People

(Reporter: Sonja Mirtitsch, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 years ago
all or most strings are char * or char [], there are plenty of isalpha(),
islower() etc. used

Updated

18 years ago
Priority: -- → P3
Target Milestone: --- → 3.3
Version: unspecified → 3.2

Comment 1

17 years ago
Assigned the bug to Nelson.
Assignee: wtc → nelsonb
Summary: selfserver needs adaptation to be usable for i18n testing → selfserv needs to be usable for i18n testing
I'm not sure this bug is valid.
It's OK for strings to be char * or char[] if they're UTF-8
strings, and NSS generally assumes that strings are UTF-8.

isalpha and islower work with other character sets besides
ascii, provided that the environment variable LOCALE is set
properly.  So, use of isalpha and islower is not automatically
a sign that the code won't work with other character sets.

However code that calls isalpha() with a char value (rather
than an int value) clearly won't work with multi-byte 
character sets.  What's needed is a function that takes
a char * and returns an int containing the value of the next
character (perhaps a multi-byte one) from the UTF-8 string
at that point.

selfserv uses string processing for command line arguments. 
It seems to me that more code than merely selfserv needs to 
be changed if command line arguments will contain UTF-8 
characters.  NSPR's command line options parser may also need
adjustment.  
(Reporter)

Comment 3

17 years ago
A lot of the languages we need to support have multibyte char sets. Andrea Vine
suggested for the NSS developers to attend her class.

Updated

17 years ago
Target Milestone: 3.3 → 3.4
This bug is not on the "in" list for NSS 3.4.
Target Milestone: 3.4 → Future

Comment 5

17 years ago
We need to have an internationalization test plan.
I'll look into this.
Assignee: nelsonb → wtc
Target Milestone: Future → 3.4
(Reporter)

Comment 6

17 years ago
My 3.4 testplan i18n will stay what it was for 3.3 - make sure the i18N
extensions are installed properly on kentuckyderby - I do not object to moving
this to future, or 3.5

Comment 7

17 years ago
Set target milestone 4.0.
Target Milestone: 3.4 → 4.0

Comment 8

16 years ago
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
QA Contact: bishakhabanerjee → jason.m.reid
Assignee: wtchang → nobody
QA Contact: jason.m.reid → tools
You need to log in before you can comment on or make changes to this bug.