nim-lang/zip

zipfiles library does not work with Unicode.

puruneko opened this issue · 2 comments

Problem

zipfiles library does not work against a filename with Unicode(multibyte character).
(ex : 【αβγ★】.zip)

Temporary solution

I tried sending WideCString in nim and recieving wchar_t pointer in C at calling 'zip_open' in libzip_all.c library.
(have to fix zipfiles.nim, libzip.nim, and libzip_all.c)
It seems looks working fine.
But, this solution is maybe only valid in 'zipfiles.open' on Windows platform.

Permanent solution

How to comply with Unicode as a whole ?
Please give me a hand...

Araq commented

Is that even fixable on our side? Nim supports Windows Unicode filenames just fine, it must be in the C code. And wchar_t shouldn't be required.

Ok, understood.
So, in this case, who should i ask ?
Or should i write codes around opening zipfile with native Nim ?