Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-22
07:21 • Closed ticket [219332ffff]: file fails on some files with non-ASCII characters... artifact: 87de1d6f25 user: hobbs
03:51 • Ticket [219332ffff]: 4 changes artifact: bf5a49d409 user: chris_nelson
2001-08-16
22:06 • Ticket [219332ffff]: 4 changes artifact: 0e94a7535a user: vincentdarley
2001-08-07
07:35 • Ticket [219332ffff]: 1 change artifact: e2cdfc52a0 user: hobbs
2000-10-26
05:10 • New ticket [219332ffff]. artifact: a87cfaae10 user: nobody

[file] fails on some files with non-ASCII characters in thei

Closed / Invalid219332ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:52
OriginalBugID: 4801 Bug
Version: 8.2
SubmitDate: '2000-04-03'
LastModified: '2000-04-17'
Severity: CRIT
Status: UnAssn
Submitter: techsupp
ChangedBy: hershey
OS: Windows 98
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Chris Nelson

ReproducibleScript:
On an NT system, do

   set fname "file\u008a"
   set fid [open $fname w]
   close $fid

On a Spanish W98 system, in the same directory, do:

   set fname "file\u008a"
   file exists $fname

It returns 0 but [glob file*] shows the file.

ObservedBehavior:
fileexists can't find the file.

DesiredBehavior:
file exists finds the file
hobbs Ticket [219332ffff]: 1 change [History diff]2001-08-07 07:35:14
vincentdarleyplain2001-08-16 22:06:46
Logged In: YES 
user_id=32170

This needs debugging by someone with access to Win98 and a 
debugger.  Purely on WinNT there is no problem.

To the reporter of this bug: on Win98 what does 'file 
exists [lindex [glob file*] 0]' return?  if 'fname' is 
file\u008a, what exactly is [lindex [glob file*] 0]?
chris_nelsonplain2001-08-22 03:51:12
Logged In: YES 
user_id=107514

I just tried this again to answer Vincent's question.

1) The Spanish is a red herring; I was able to reproduce the problem on a normal, English W98 system.

2) From

    file exists [lindex [glob file*] 0]

I get 1.  glob reports something like:

    file~D8

but fname is puts'd as:

    file?
hobbsplain2001-08-22 07:21:42
Logged In: YES 
user_id=72656

Hmmm, well Win9*/ME doesn't handle i18n in the same way 
(I'm not even sure what capabilities they really have at 
the fs level).  I tried this on Win98, and I wasn't even 
able to create a file called file\u008a.  However, I am 
able to create other weird files.  Going further, Win9* 
doesn't seem to be able to operate on \u008a being in the 
file at all (try it with Explorer or Notepad).  This seems 
to be a file system limitation, not a bug in Tcl.
Log in (anonymous is fine) to add a comment.