-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
As noted here: https://stackoverflow.com/questions/39365489/how-do-you-keep-diacritics-in-shortcut-paths
The WScript.Shell implementation does not support diacritic characters in an Unicode string in case of TargetPath shortcut property. But this module has the same issue:
c:\1.txt.lnk -> c:\ööö\1.txt
>pylnk p c:\1.txt.lnk _link_info._pathc:\ooo\1.txtBut WorkingDirectory property is not affected:
>pylnk p c:\1.txt.lnk _work_dirc:\öööI've compared with https://github.com/Matmaus/LnkParse3 implementation and it returns more reliable results:
>lnkparse c:\1.txt.lnk...
LINK INFO:
Link info flags: 1
Local base path: C:\ooo\1.txt
Common path suffix:
Local base unicode: C:\ööö\1.txt
Common path suffix unicode: .\ööö\1.txt6C:\ööödz
...
DATA
Relative path: .\ööö\1.txt
Working directory: C:\öööWhen pylnk3 is not:
>pylnk3 p c:\1.txt.lnk _link_info.local_base_pathC:\ooo\1.txtI've tried to change the code:
#DEFAULT_CHARSET = 'cp1251'
DEFAULT_CHARSET = 'utf-8'But it still returns a truncated variant. Seems the app does read only one property field (Ansi) instead of 2 (Ansi+Unicode) as LnkParse3 does.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels