ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Junction point with Unicode-named directory   [Help!]

By: Laurent Duchastel     Montréal, Québec  
Date: Nov 18,2020 at 21:03
In Response to: [Help!] Junction point with Unicode-named directory (Liviu)

> > Trying to junction that directory with my F9 batch ends with [...]
> a junction point which doesn't work.
>
> Wish I had better news, but I don't think it can work. The limiting
> factor here is that it's going through a temporary batch file, which has
> the parameters expanded inline. The batch file appears to always be saved
> in the OEM codepage (Kim, please correct me if I am wrong about this),
> and therefore paths with international characters outside that codepage
> do not get saved correctly.
>
> You can see the end result of such conversion if you create a simple F9
> entry with just echo %1
> "%cd%". When executed in a DW, the two strings should be
> identical, since %cd% is
> the current directory, but for a directory with "problem" characters
> they won't match. For example, with a directory color="#003399">"C:\‹ α ß © ∂ € ›" what
> gets printed is "C:\< α ß c · ·
> >" "C:\‹ α ß © ∂ € ›".
>
> Possible workarounds could be for ZTree to:
> - have an option to pass (some) of the path parameters via environment
> variables or as arguments to the batch file, instead of expanding them in
> the body of the batch file;
> - or, have an option to save the temporary batch file as UTF-8 which
> might work with chcp 65001
> in more recent Windows 10 versions.
>
> Either way, however, would require not-quite-trivial changes in ZTree.
>
> Cheers,
> Liviu

Hello Liviu,

Thank you for your explanation.
This is absolutely in line with my tests with ZTree. It doesn't handle such filename well.

For my needs, manual cut-paste of filename from console will do the job. ;-)

Best regards,


Laurent Duchastel

36 views      
 

Messages in this Thread

 
95,140 Postings in 11,997 Threads, 350 registered users, 60 users online (0 registered, 60 guests)
Index | Admin contact |   Forum Time: Nov 27, 2020 - 8:49 am UTC  |  Hits:35,746,100  (6,165 Today )
RSS Feed