Author: LogicDaemon
Subject: 260-char path length limit in lists for usercmd.ini
Posted: Tue Dec 27, 2016 10:26 am (GMT -6)
Hi all.
I'm trying to integrate zpaq via usercmd.ini (code below) and custom script (on github).
Problem is that all paths in list files written by Total Commander are hard-truncated to 260 bytes. This is terrible. (yes, bytes, not even characters! Last character is one fit to 260-byte limit, string does not get cut in middle of UTF-8, so at least this is as bad as it could be).
Have any suggestions for workarounds?
Subject: 260-char path length limit in lists for usercmd.ini
Posted: Tue Dec 27, 2016 10:26 am (GMT -6)
Hi all.
I'm trying to integrate zpaq via usercmd.ini (code below) and custom script (on github).
Problem is that all paths in list files written by Total Commander are hard-truncated to 260 bytes. This is terrible. (yes, bytes, not even characters! Last character is one fit to 260-byte limit, string does not get cut in middle of UTF-8, so at least this is as bad as it could be).
Have any suggestions for workarounds?
Code: |
[em_zpaq_add] menu=zpaq add cmd=%comspec% param=/C ""%%COMMANDER_PATH%%\AutoHotkey.exe" "%%COMMANDER_PATH%%\zpaq.ahk" a %UL "%T\"" [em_zpaq_list] menu=zpaq list cmd=%comspec% param=/C ""%%COMMANDER_PATH%%\AutoHotkey.exe" "%%COMMANDER_PATH%%\zpaq.ahk" l %UL" [em_zpaq_extract] menu=zpaq extract cmd=%comspec% param=/C ""%%COMMANDER_PATH%%\AutoHotkey.exe" "%%COMMANDER_PATH%%\zpaq.ahk" x %UL "%T\"" |