Nп/п : 21 из 100
 От   : Michael Soyka                       2:5075/128        01 сен 23 17:25:46
 К    : All                                                   01 сен 23 03:27:02
 Тема : Problem with filenames that include emoji characters
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<53eaef44-31be-4cd5-98a4-b535c4b1b1f6n@googlegroups.com> 8b9028be
@REPLYADDR Michael Soyka <mssr953@gmail.com>
@REPLYTO 2:5075/128 Michael Soyka
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<53eaef44-31be-4cd5-98a4-b535c4b1b1f6n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
 I`m using the Magicsplat distribution of tcl 8.6.12 on a Windows 10
system. I recently received a collection of .eml files whose filenames
include emoji characters. I assume these files were created by some email
client such as Outlook. When emails are saved to a file the Subject line
is used for the filename. I assume that this is how the filenames
came to include emoji characters.

 Now to the problem. When I try to access these files using Tcl, I
get what I consider to be nonsensical errors. For example, the "open"
command fails with the message "filename is invalid on this platform", even
though the file does exist. On the other hand, various "file" commands
that also take a filename argument, such as "exists" and "size", return
"no such file or directory". Again, the file certainly does exist.

 I can confirm that the emoji characters in these filenames have the
values \\u01f495 and \\u01f49e, "two hearts" and "rotating hearts". The
filenames also include the characters "FADED LOVERS TOUR" so I suppose that
justifies their inclusion. :)

 I haven`t been able to construct such a filename using Tcl
commands. Instead, I`ve used "glob" to get the filename from the filesystem
(NTFS) and used the result as the argument for "open" and "file".

I admit I`m inexperienced in things UTF-8, encodings and code pages but 
is this a bug to report or do I need to fill-in some gaps in my education?

Thanks in advance for any comments,
-mike

--- G2/1.0
 * Origin: usenet.network (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    
                                                                                
В этой области больше нет сообщений.

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