Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-04-06
21:52 • Closed ticket [929808ffff]: unixInit-3.1 FAILED InitialEncodings plus 7 othe... artifact: a35de72ef8 user: dgp
15:32 • Ticket [929808ffff]: 5 changes artifact: d1ab9ad277 user: dkf
11:00 • Ticket [929808ffff]: 5 changes artifact: e5f0b6508f user: dgp
09:43 • Open ticket [929808ffff]. artifact: 2e3423f39b user: tauvan
04:07 • Pending ticket [929808ffff]. artifact: cfd7a8834f user: dgp
2004-04-05
15:19 • New ticket [929808ffff]. artifact: c96319381e user: tauvan

unixInit-3.1 FAILED InitialEncodings

Closed / Fixed929808ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-04-05 15:19:51
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5 
occurs: local, root
info under: 20 failures bug

I think test is to return and not set anything so
possibly:

  if {[string match utf-8 [encoding system]]} {
        puts $f {puts iso8859-15; exit}
    } else {
        puts $f {puts [encoding system]; exit}
    }
dgpplain2004-04-06 04:07:44
Logged In: YES 
user_id=80530

I take it that the test
unixInit-3.1 failed?

When that failure happened,
what was reported by the
test suite?  Cut and paste
that part of the output please.

Thanks.
tauvanplain2004-04-06 09:43:34
Logged In: YES 
user_id=1011552

also see
 info under:
 [ 910323 ] 20 failures with 8.4.6 on MacOS X 10.3, many env related

==== unixInit-3.1 TclpSetInitialEncodings FAILED
==== Contents of test case:

    set env(LANG) C

    set f [open "|[list [interpreter]]" w+]
    fconfigure $f -buffering none
    puts $f {puts [encoding system]; exit}
    set enc [gets $f]
    close $f
    unset env(LANG)

    set enc

---- Result was:
utf-8
---- Result should have been (regexp matching):
^iso8859-15?$
==== unixInit-3.1 FAILED
dgpplain2004-04-06 11:00:20
Logged In: YES 
user_id=80530

dkf, any insight on why this
test would assume that

env(LANG) == C 

would cause [encoding system]
to be iso8859-15 ?

Do you think this test is intended
to port to Mac OS X , or is it even
broken on Unix?
dkfplain2004-04-06 15:32:42
Logged In: YES 
user_id=79902

It's nothing to do with me.  I wouldn't have made such an
assumption, as it is broken-by-design (e.g. in the US,
iso8859-1 would be an entirely reasonable answer as well)
unless we're testing the fallback encoding selection system
(which should only kick in when the environment itself is
broken.)

However, I don't know what the right solution is; perhaps
listing acceptable answers would be a better solution?  Any
of iso8859-1, iso8859-15 and utf-8 are acceptable fallback
encodings in my eyes, so I suppose we could use a -regexp
matching rule to check that we're getting one of those three...
dgpplain2004-04-06 21:52:40
Logged In: YES 
user_id=80530

Fixed for 8.4.7 and 8.5a2.
Log in (anonymous is fine) to add a comment.