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:
CHCP
echo Store the one-liner command output in a file:
CHCP >CHCP.out
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...

Hartmut

87 views      
 

Messages in this Thread

 
94,579 Postings in 11,930 Threads, 348 registered users, 52 users online (1 registered, 51 guests)
Index | Admin contact |   Forum Time: Nov 15, 2019 - 2:12 am EST  |  Hits:29,104,005  (1,219 Today )
RSS Feed