Re: zip from windows to unix



I have met a strange problem concerning Unix filenames.

This is the same problem that would be faced by another Windows
user with a different code page: Windows presents varying interpretations
of the same filename, according to which code page is in use.

I zip a program and data collection for users under windows using the
"zip" command in a shell. There are some files containing national
characters from the character set.

When users unzip this with "unzip" command, they do not get the right
filenames, since the foreign language characters are not translated
from the windows codepage.

You could hire somebody to add a parameter to unzip.
Or, you could hire somebody to write a LD_PRELOAD shared library
to translate filenames (according to an environment variable)
by intercepting the system calls that deal with filenames:
open(), access(), stat(), unlink(), etc.
[And then make a shell wrapper which invokes unzip
using LD_PRELOAD and the proper code page specification.]
Or, you could do it yourself.
In any case, your users would have to specify the correct
code page. This is a very large usability problem.

--
.



Relevant Pages