A: Bug with ' in file name

Bugs and Suggestions in XnView Classic which have been resolved

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
robc
Posts: 164
Joined: Mon Nov 14, 2005 12:53 pm

A: Bug with ' in file name

Post by robc »

If the name of a file contains a ' character (ASCII decimal 39 or hex 27) the corresponding thumbnail gets created but is not saved; if this happens with a folder, the thumbnails for the contents of whole folder are created but not saved.

This did not happen AFAIK with the previus version (I've removed it so I cannot be sure now) and I'm afraid it's caused by the underline DB engine for storing image thumbs, since in SQL the ' character is normally used to enclose strings. Depending on the DB engine being used, it should be possible to use double quotes instead in all database calls, thus rendering the single quote usable...

Single quotes may appear in names of people and places all over the world, so I don't believe the current behavior can be left as is.

EDIT: using the ` character instead of the ' (single quote) works correctly, so probably it's really a db syntax issue.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug with ' in file name

Post by xnview »

robc wrote:If the name of a file contains a ' character (ASCII decimal 39 or hex 27) the corresponding thumbnail gets created but is not saved; if this happens with a folder, the thumbnails for the contents of whole folder are created but not saved.

This did not happen AFAIK with the previus version (I've removed it so I cannot be sure now) and I'm afraid it's caused by the underline DB engine for storing image thumbs, since in SQL the ' character is normally used to enclose strings. Depending on the DB engine being used, it should be possible to use double quotes instead in all database calls, thus rendering the single quote usable...

Single quotes may appear in names of people and places all over the world, so I don't believe the current behavior can be left as is.

EDIT: using the ` character instead of the ' (single quote) works correctly, so probably it's really a db syntax issue.
Ok, i check
Pierre.
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Illegal

Post by Clo »

—> robc

:) Good evening,

• Normally, the apostrophe is not allowed in the items names under Windows, this is an old feature…

• To keep the same look and a meaningful name, you could use the character #146 (Alt+0146) instead, example :
<My mothers dog.jpg> does work, and looks quite nice…

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post by JohnFredC »

That's a good tip, Clo.
John
User avatar
robc
Posts: 164
Joined: Mon Nov 14, 2005 12:53 pm

Post by robc »

The single quote IS indeed allowed in file names under Windows (only /\?*:"<>| are not, since they are reserved for operating system use in the standard command syntax): any application that deals with files should accept and reject the same characters as the operating system, otherwise sooner or later something's gonna break. Which item names are you referring to?

Also, the single quote and the ` character are directly available on any keyboard and any character set, while your workaround isn't - though I must admit it looks nice. Unfortunately there are tons of people who don't even know that by pressing the alt key and entering a three- or four- digit code on the numeric keypad you can get any available character :(
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Dos doesn't

Post by Clo »

:) I guess that (invisible) DOS 8.3 alias names could be used still to save, and there the apostrophe is not welcome.
- Just notice that in old DOS¦Win, more characters were not allowed…
I.e. for the volume label : ?/\246.,;:+=<>[ ]( )&^!\042
- It seems to be valid still in a LAN…

- Newbies might play with the charmap ! ;) It's a gold mine to find workarounds… “ …” ‹ …› – — and others can help.

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Confirmed with alpha1, but fixed in alpha2 and beta1. -> Closed
Post Reply