Nп/п : 44 из 100
 От   : Rolf Ade                            2:5075/128        09 сен 23 00:28:18
 К    : Michael Soyka                                         09 сен 23 01:30:01
 Тема : Re: Problem with filenames that include emoji characters
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <87y1hgb8ql.fsf@pointsman.de> 6e769d79
@REPLY: 1@dont-email.me> 8e0f49c6
@REPLYADDR Rolf Ade <rolf@pointsman.de>
@REPLYTO 2:5075/128 Rolf Ade
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: <87y1hgb8ql.fsf@pointsman.de>
<53eaef44-31be-4cd5-98a4-b535c4b1b1f6n@googlegroups.com><87jzt3c5i4.fsf@pointsma
n.de> 1@dont-email.me><8734zpcygj.fsf@pointsman.de>
1@dont-email.me>
@TZUTC: 0200
@PID: Gnus/5.13 (Gnus v5.13) Emacs/28.2
(gnu/linux)
@TID: FIDOGATE-5.12-ge4e8b94
Michael Soyka writes:
> On 09/07/2023 8:15 PM, Rolf Ade wrote:
>> The one known scenario which shows what you describe (you can`t open
>> a filename you got from glob) is: the file names are written in
>> another encoding then what the system use for its filenames. Though,
>> in what you presented as results of your own investigations I cannot
>> see indication that this is the case here.
>>
>> But perhaps it`s in fact a strangeness of the used windows APIs (or
>> how they are used). At least you are right in saying this is strange
>> and need an explanation. If it`s not the thing from above.
>
> I`ve since copied the files from the same thumb drive onto my linux
> system and retried the "glob" and "open" commands using 8.6.10- it all
> works.  My Windows version is 8.6.12, a later version, so it appears
> that my problems are peculiar to Windows.

For the record: I also saw the emojis as character glyph, they are just
ordinary unicode code points in utf-8 encodings; your system should be
able to handle this and for sure Tcl should be able to handle this.

Should be easy for listening Windows user to test. The file name in
question is:

NEXT SAT. 2_15_ FADED LOVERS TOUR in PROVIDENCE! ???.eml

Use the file explorer to create a file with that name. Then use Tcl
8.6.12- and look what glob returns for the directory with the file in
it. Then try to open the file name returned from glob and try file
exists.

On linux this all works well. I used emacs to create a file with the
name from above in an otherwise empty directory. Then, in an interactiv
tclsh session:

glob *
{NEXT SAT. 2_15_ FADED LOVERS TOUR in PROVIDENCE! ???.eml}
set filename [lindex [glob *] 0]
NEXT SAT. 2_15_ FADED LOVERS TOUR in PROVIDENCE! ???.eml
set fd [open $filename]
file3
close $fd
file exists $filename
1

Mike, can you reproduce the issue with this recipt?

rolf
--- Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
 * Origin: Me (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх