Overview
| Artifact ID: | 62cd2be2b10216eb8c00e4a838e9435133f6e6b8c5436fa22440c7f34093563d |
|---|---|
| Ticket: | 43b065660532eb4a3678e70e9d68daf1b09810ac
MS Windows: files with emojis are found by glob but not recognized by file exists or open |
| User & Date: | juliannoble2 on 2023-09-09 13:30:31 |
Changes
- icomment:
Interestingly while open/read/stat etc don't work file attributes does. P% file attributes $f - -longname {NEXT SAT. 2_15_ FADED LOVERS TOUR in PROVIDENCE! 💕💞💕.eml} -shortname NEXTSA~1.EML P% file exists NEXTSA~1.EML - 1 You also can't glob for an exact match: glob $f Dos device pathnames don't help either: P% file exists //?/[pwd]/$f - 0 (note a full path is required for the //?/ syntax) Everything works fine if you use the shortname - but it seems if that's the case maybe the windows file code should automatically try the shortname in these cases. This is close, but *slightly* different to the behaviour you get when using what is considered an illegal path in windows. e.g a filename ending in . or a space. These ones do work simply by using the //?/ syntax - but.. file attributes doesn't return the shortname info. P% file exists [pwd]/testetc123aaa. - 0 P% file exists //?/[pwd]/testetc123aaa. - 1 P% file attributes [pwd]/testetc123aaa. could not read "C:/test/testetc123aaa.": no such file or directory p% file attributes //?/[pwd]/testetc123aaa. - -archive 1 -hidden 0 -readonly 0 -system 0 Exact globs for trailing dot/space files also doesn't work. It's obviously more important that the emoji names work than trailing dots or spaces which is a separate issue - I just thought the comparison with the //?/ workaround not working was interesting. - login: "juliannoble2"
- mimetype: "text/plain"