Re: zip from windows to unix
- From: John Reiser <jreiser@xxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 15:42:25 -0700
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.
--
.
- Follow-Ups:
- Re: zip from windows to unix
- From: Rene Grothmann
- Re: zip from windows to unix
- References:
- zip from windows to unix
- From: Rene Grothmann
- zip from windows to unix
- Prev by Date: zip from windows to unix
- Next by Date: Re: Need a Binary diff / compressor for win32
- Previous by thread: zip from windows to unix
- Next by thread: Re: zip from windows to unix
- Index(es):
Relevant Pages
|
|