Re: 32-bit rar archiver with libc6-i386 cannot convert filenames to utf8
On 5/16/07, Aaron M. Ucko <ucko@debian.org> wrote:
"Max Alekseyev" <maxale@gmail.com> writes:
> If for some reason rar cannot convert filenames into utf8, it creates
> an archive only with filenames in the current locale encoding. And
> that exactly what happens with rar using libc6-i386 libraries. Under
> my debian-amd64 it creates archives only with filenames in koi8-r
> encoding (as my locale is ru_RU.KOI8-R) that are unreadable under MS
> Windows. What can possible prevent rar from converting filenames from
> koi8-r to utf8 (locale ru_RU.UTF-8 is also in my system)?
Perhaps it's looking for the gconv modules in the wrong place. (You
can confirm this via strace.)
Under strace I've found out that rar is accessing /usr/lib/gconv/KOI8-R.so:
open("/usr/lib/gconv/KOI8-R.so", O_RDONLY) = 4
but its format:
$ file /usr/lib/gconv/KOI8-R.so
/usr/lib/gconv/KOI8-R.so: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), for GNU/Linux 2.6.1, stripped
may inappropriate for a 32-bit program (which rar is).
Can this cause a trouble I am facing?
If so, how can it be fixed? Should I provide (and how?) a 32-bit
version of KOI8-R.so to rar?
Thanks,
Max
Reply to: