Archive not working with rare characters in filenames (v1.0)

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
osiris2258
Posts: 48
Joined: Sat Jan 10, 2009 9:18 pm

Archive not working with rare characters in filenames (v1.0)

Post by osiris2258 »

Files inside archives the have an em dash character in the file name can be opened, but show no metadata or file name inside XN view and cannot be scrolled through, even if some other files in the same archive do have filenames that are registering normally. Not sure about other odd characters; this is just the one case I happened to find quickly.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Archive not working with rare characters in filenames (v1.0)

Post by xnview »

i can't reproduce, please sens me an archive file
Pierre.
Moarc
Posts: 4
Joined: Tue Aug 16, 2022 2:09 pm

Re: Archive not working with rare characters in filenames (v1.0)

Post by Moarc »

I can corroborate. According to my experiments, archives with Cyrillic, Japanese, Chinese characters or an em dash (or fancy quotation signs, etc.) in their filename open in the way described in the initial post, as an empty folder. The filenames *inside* the archive do not seem to matter.

Oddly enough, thumbnails are generated for folders which only contain such archives (when the browser is in the superior directory), but not for the archives themselves once you enter that directory.

The issue manifests on both Windows and Linux.

Here's an archive with relevant archives.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Archive not working with rare characters in filenames (v1.0)

Post by xnview »

i've tried but only file in nonascii-filename-inside-archive.zip can't be opened...
Pierre.
Moarc
Posts: 4
Joined: Tue Aug 16, 2022 2:09 pm

Re: Archive not working with rare characters in filenames (v1.0)

Post by Moarc »

Maybe it depends on the locale?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Archive not working with rare characters in filenames (v1.0)

Post by xnview »

Moarc wrote: Wed Aug 17, 2022 2:32 pm Maybe it depends on the locale?
which locale do you use?
Pierre.
Moarc
Posts: 4
Joined: Tue Aug 16, 2022 2:09 pm

Re: Archive not working with rare characters in filenames (v1.0)

Post by Moarc »

Windows preinstalled with Polish and switched to English later on (some programs automatically use English and some use Polish, depending on the way they determine the locale - AFAIU there's at least two variables for this, one for 'what language was the original Windows installation' and the other for 'what language is it currently set to').

Linux with

Code: Select all

LANG=en_US.utf8
LC_CTYPE=pl_PL.utf8
LC_NUMERIC=pl_PL.utf8
LC_TIME=pl_PL.utf8
LC_COLLATE=en_US.utf8
LC_MONETARY=pl_PL.utf8
LC_MESSAGES=en_US.utf8
LC_PAPER=pl_PL.utf8
LC_NAME=pl_PL.utf8
LC_ADDRESS=pl_PL.utf8
LC_TELEPHONE=pl_PL.utf8
LC_MEASUREMENT=pl_PL.utf8
LC_IDENTIFICATION=pl_PL.utf8
The disparity between my (and the original poster's) and your results is really puzzling - in my case, nonascii-filename-inside-archive.zip is precisely the only file that opens properly, with thumbnails for the image it contains, apart from ascii-filename.zip.
Moarc
Posts: 4
Joined: Tue Aug 16, 2022 2:09 pm

Re: Archive not working with rare characters in filenames (v1.0)

Post by Moarc »

Seems to fixed in 1.01.

Sorry to have wasted your time.
Post Reply