Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-06
02:30 • Ticket [219004ffff] tests/stringObj.test fails on multibyte locale status st... artifact: cc854f4477 user: dgp
2000-10-26
08:33 • Closed ticket [219004ffff]. artifact: d83e6f00ad user: welch
01:09 • New ticket [219004ffff]. artifact: 51fbf022a4 user: nobody

tests/stringObj.test fails on multibyte locale

Closed / Fixed219004ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:12
OriginalBugID: 3842 Bug
Version: 8.2.2
SubmitDate: '1999-12-10'
LastModified: '2000-06-27'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: Solaris
OSVersion: SunOS 5.7 (japanese edition)
Machine: Sun Ultra-60
FixedDate: '2000-06-27'
FixedInVersion: 8.4a2
ClosedDate: '2000-10-25'


Name:
Taketo Kabe

Comments:
stringObj.test uses raw,unescaped 8bit characters in doublequotes.
This may be properly parsed on iso-8859-1 or similar 8bit-per-char
locale, but (correctly!) fails if the system locale was multibyte, such as EUC-jp, EUC-kr etc.
Temporary solution would be running the tests by explicitly specifying a 8bit-char locale, i.e

env LANG=en_US LD_LIBRARY_PATH=. TCL_LIBRARY=../library ./tcltest ../tests/stringObj.test

This phenomenon seems to be persistent since Tcl has gone Unicode (around 8.1?).

Rewriting stringObj.test to not include raw 8bit chars is suggested,
using "\uxxxx" construct or binary command, depending on what to test.

ReproducibleScript:
on unix/ directory after build,
env LANG=ja make test

ObservedBehavior:
stringObj-10.4, stringObj-13.5, stringObj-13.6 fails

DesiredBehavior:
none (or all!)  tests should fail.



Thanks for the suggestion; I modified the tests in the manner you suggested.
The fix will go out with Tcl 8.4a2.

   Eric Melski                            The Other Tcl Guy
   ericm at ajubasolutions.com            Ajuba Solutions
 
-- 06/27/2000 ericm
welch Closed ticket [219004ffff]. [History diff]2000-10-26 08:33:08
dgp Ticket [219004ffff]: 3 changes [History diff]2001-04-06 02:30:41
Log in (anonymous is fine) to add a comment.