- 18.08.2018 10:54 78 896 RAD_Sˇkolni´ rˇa´d.docx
- 18.08.2018 10:54 247 581 RAD_Sˇkolni´ rˇa´d.pdf
Unicode file names from MacOS are displayed incorrectly
Unicode file names from MacOS are displayed incorrectly
Hello, we use Windows servers and workstations in Czech language. We also allow users to use VPN. One colleague uses Macintosh. When she save file e. g. Školní řád.docx, it's transformed into Sˇkolni´ rˇa´d.docx (see attached screenshot). Problem is visible only in FAR, Windows Explorer is fine with that. Is there anything I can set in FAR to see these file names correctly?
- Attachments
-
- far.png (11.68 KiB) Viewed 11051 times
-
- explorer.png (3.84 KiB) Viewed 11051 times
Last edited by HaRT on Thu 21 Mar, 2019 12:27, edited 1 time in total.
Reason: Removed Topic icon
Reason: Removed Topic icon
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Unicode file names from MacOS are displayed incorrectly
Very unlikely. It's a known macOS—Windows interoperability issue with Unicode normalization.
What does “
cmd /c dir
” output in that directory?Фар есть инструмент, а не нянька. © 2009 DrKnS
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Unicode file names from MacOS are displayed incorrectly
I wonder if FAR can/should perform Unicode normalization prior to any output of file names, like Explorer does…
ragimiri, you could try ConEmu for now, it might have a workaround for this.
ragimiri, you could try ConEmu for now, it might have a workaround for this.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Unicode file names from MacOS are displayed incorrectly
Even normaliz.dll:NormalizeString can't combine that names.
Name contains:
Caron (U+02C7) should be Combining Caron (U+030C)
Acute Accent (U+00B4) should be Combining Acute Accent (U+0301)
Name contains:
Caron (U+02C7) should be Combining Caron (U+030C)
Acute Accent (U+00B4) should be Combining Acute Accent (U+0301)
Unicode file names from MacOS are displayed incorrectly
And lost original (not normalized) name after that.
As I can understand MacOS always decomposes filenames unlike Windows.
Unicode file names from MacOS are displayed incorrectly
test.bat successfully creates 3 different files on my win10.
2 of them visually identical (different pairs in far/explorer).
2 of them visually identical (different pairs in far/explorer).
- Attachments
-
- test.bat.7z
- (259 Bytes) Downloaded 113 times
Last edited by 2useven10 on Thu 21 Mar, 2019 18:10, edited 1 time in total.
Unicode file names from MacOS are displayed incorrectly
ragimiri, If explorer shows names identically your names should be correctly decomposed.
Probably wrong names is just console bug.
Some days ago I did macros for automate normalized renaming in far (similar problem was with decomposed russian й).
You can copy macros NormalRen.lua to %FARPROFILE%\Macros\scripts\
To start renaming press CtrlShiftN (problem file should be under cursor).
Probably wrong names is just console bug.
Some days ago I did macros for automate normalized renaming in far (similar problem was with decomposed russian й).
You can copy macros NormalRen.lua to %FARPROFILE%\Macros\scripts\
To start renaming press CtrlShiftN (problem file should be under cursor).
Last edited by 2useven10 on Thu 21 Mar, 2019 18:38, edited 1 time in total.
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Unicode file names from MacOS are displayed incorrectly
No, I mean normalization for display purposes only (like e.g. character case changes in panel modes). All file operations would be performed using the original file name.
Фар есть инструмент, а не нянька. © 2009 DrKnS
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Unicode file names from MacOS are displayed incorrectly
I suspect it's how console changes the combining accent characters to display them. The original ones were surely combining.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Unicode file names from MacOS are displayed incorrectly
I think it is possible to provide filename display mode switching like Ctrl+N toggles short/full name mode.
- HaRT
- Moderator
- Posts: 10823
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
Unicode file names from MacOS are displayed incorrectly
I'd prefer it to be encapsulated by Panel Mode settings for it to be more flexible and more persistent.
Фар есть инструмент, а не нянька. © 2009 DrKnS