Page 1 of 1

A: Bug with ' in file name

Posted: Mon Sep 11, 2006 12:57 pm
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.

Re: Bug with ' in file name

Posted: Mon Sep 11, 2006 1:12 pm
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

Illegal

Posted: Mon Sep 11, 2006 5:10 pm
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

Posted: Mon Sep 11, 2006 5:25 pm
by JohnFredC
That's a good tip, Clo.

Posted: Mon Sep 11, 2006 6:05 pm
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 :(

Dos doesn't

Posted: Mon Sep 11, 2006 6:29 pm
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

Posted: Mon Nov 27, 2006 10:18 pm
by helmut
Confirmed with alpha1, but fixed in alpha2 and beta1. -> Closed