ZTree.com  | ZEN  | About...  

 Index   Back

[Bug?] Archive processing in Unicode -> incompatible output   [Zeta]

By: Hartmut Schneider     Germany  
Date: Oct 30,2019 at 09:41
In Response to: [Zeta] v2.4.191 Now Available! (Kim Henkel)

> Fixed - View - Gather F5 Append not working reliably

This change was introduced in v2.4.188
Since this version the output of self-written Archiver scripts has changed:
it is a mix of UTF-16LE and UTF-16BE...

Cannot be read properly now. I use such a self-written Archiver script many times a day
to display the properties of our target binaries at work.

To reproduce:
- Create a batch file, e.g. 'TestArchiverEcho.bat' in #ZTTools (so ZTree finds it) which contains this:
echo Launch a one-liner command:
echo Store the one-liner command output in a file:
echo Type this file:
type CHCP.out
echo Echo some text using the echo command.

- in ARCHIVER.BB2, launch this batch e.g. instead of PKZIPC for ZIP files:
in the "PKZip 4.x/5.0 for Windows [LFN]" block (mostly one of the first blocks)
change the 4th line (Archiver List command):
old: PKZIPC.EXE -view -nofix -nozip
new: TestArchiverEcho.bat

- Restart the ZTree instance so it re-loads the modified ARCHIVER.BB2
- Make sure that CO-5D 'Display archive list output' contains 'View'
- Highlight a .ZIP file and press [V]iew.

Now you should get a mix of UTF-16BE and UTF-16LE, not quite readable.
When you toggle the internal Viewer's [C]harset, it cycles between UTF, ANSI and OEM display,
even less readable.

I'll post two more observations in the next posting...


Thread locked

Messages in this Thread

95,028 Postings in 11,980 Threads, 349 registered users, 28 users online (0 registered, 28 guests)
Index | Admin contact |   Forum Time: Jul 4, 2020 - 4:59 pm EDT  |  Hits:31,932,511  (18,266 Today )
RSS Feed