Special chars in file names [DONE]

already fixed bugs

Moderator: AniDB

Locked
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Special chars in file names [DONE]

Post by Elberet »

When adding files from "hack//Legend of Twilight Bracelet" to eMule, the two "//" in the filename were removed, resulting in "hackLegend...". Not quite what was intended. Please fix it so that special chars are converted to something else instead of just removed, i.e. whitespace or underscores.
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

Well, I think removing the // is ok. In fact ' are changed to `.
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

Ah yes, I noticed that too. I would guess that's becase ' is a magic character in SQL. :P Anyways, I argue that replacing the // with a single space would be better then just removing it alltogether.
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

In fact I use .hackSIGN as the name for the series for obvious reasons. ;)
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

hm,

is this really a problem?

BYe!
EXP
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

More like an inconvenience. :mrgreen:
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

well,

what i mean is would replacing // with __ instead of " " really improve it?
after all the basic problem is that / is simply an illegal character in a filename.

BYe!
EXP
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

"/" is not an illegal character in Linux filenames... :mrgreen:


Err, ignore that. :P
The problem with replacing "/" with nothing at all is that certain filenames get a different meaning. "Hack//legend" becomes "Hacklegend". That filename is very annoying and I have to edit it myself. If "/" was replaced with a visible character, such as "_" or "-", the filename would still look ugly, but at least it would be useable, as in "Hack--legend".
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

I don't think hackSIGN has a totally different meaning that hack//SIGN. I'm missing something or you're being extremely picky?
Gambit
AniDB Staff
Posts: 555
Joined: Sun Oct 06, 2002 11:21 am

Post by Gambit »

If you use a capital letter for the next part (like HackSign or HackDusk) then I guess I don`t have a problem with that ... of course, if you start using hackdusk then it would be looking lame.
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

DonGato: It works for HackSIGN, but doesn't work for "Hacklegend of Twilight Bracelet". Yes, I'm probably just picky, but I didn't expect that something as simple as this would create such a big debate. :?
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

You mean hackLEGEND or HackLegend isn't possible?! 8O
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

these chars are now replaced by -
i hope that "fixes" it.

BYe!
EXP
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

Thank you, exp. :)
Locked