Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#342271 - 14/02/2011 14:31 Slashes in Filenames under Windows 7
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
This is weird. I brief search did not help. Has it happened to you that a file in Windows had "/" in it? These files were copied from a Blackberry. Still, Windows should have noticed and replaced the slash with some legitimate character.

Slash!


Edited by taym (14/02/2011 14:33)
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#342274 - 14/02/2011 14:51 Re: Slashes in Filenames under Windows 7 [Re: Taym]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
You can get a / but it has to be Unicode.

Top
#342275 - 14/02/2011 14:57 Re: Slashes in Filenames under Windows 7 [Re: tman]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Originally Posted By: tman
You can get a / but it has to be Unicode.


Yeah, could be a solidus (fraction slash), which only looks like a slash. From that page: "The solidus can be typed on Microsoft Windows as Alt-8260 and the division slash as Alt-8725."

Although it appears to be lying about that. I couldn't get it to work on a UK keyboard. Charmap has them at U+0002F, U+2044 and U+2215. Pasting them into the BBS edit box results in HTML entities that get escaped and don't display properly.

_________________________
-- roger

Top
#342277 - 14/02/2011 15:01 Re: Slashes in Filenames under Windows 7 [Re: Roger]
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12341
Loc: Sterling, VA
Originally Posted By: Roger
"The solidus can be typed on Microsoft Windows as Alt-8260 and the division slash as Alt-8725."

The former gives me a "D" and the latter gives me a "§"
_________________________
Matt

Top
#342278 - 14/02/2011 15:21 Re: Slashes in Filenames under Windows 7 [Re: Dignan]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Works fine for me in Word with the default Calibri font. Doesn't work if I try it elsewhere.

Top
#342279 - 14/02/2011 15:29 Re: Slashes in Filenames under Windows 7 [Re: Roger]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Originally Posted By: Roger
Yeah, could be a solidus (fraction slash)

That looks like what happened looking at the difference here:

17/05/2010 - slash
17⁄05⁄2010 - solidus

The preview I see while making this post looks similar to his screenshot, where Windows isn't giving the solidus much room to the point where it's almost touching the numbers.

(For Mac users, it's Option-Shift-1.)

If it is a solidus, thats a pretty clever trick. The OS X Finder does something different to enable forward slashes (for compatibility with the classic Mac OS). In the GUI, a / can appear in a file, but under the hood on the Unix side, it's translated to a : . Makes me wonder how it does the translation though if it were to be copied into OS 9, as : is the folder separator in that OS. OS X Finder still bans : from being manually entered in a file name.

*edit, hrm, the BBS blew it up when even I posted. Lets try the admin cheat of HTML post mode*


Edited by drakino (14/02/2011 15:30)

Top
#342282 - 14/02/2011 16:33 Re: Slashes in Filenames under Windows 7 [Re: Dignan]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Quote:

17/05/2010 - slash
17⁄05⁄2010 - solidus


Tom, you're right, I did not notice that!

Originally Posted By: Dignan
Originally Posted By: Roger
"The solidus can be typed on Microsoft Windows as Alt-8260 and the division slash as Alt-8725."


The former gives me a "D" and the latter gives me a "§"

The former does give me a solidus at the command prompt, but I can't seem to use it into a filename (trying with an "echo >" command). It seems the command prompt treats it as a slash...

_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#342324 - 14/02/2011 23:36 Re: Slashes in Filenames under Windows 7 [Re: Dignan]
Taym
carpal tunnel

Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
Originally Posted By: Dignan
Originally Posted By: Roger
"The solidus can be typed on Microsoft Windows as Alt-8260 and the division slash as Alt-8725."

The former gives me a "D" and the latter gives me a "§"

OK, on another PC, my desktop, I am getting exactly the same as you, Dignan. Should't Unicode be one for all? I'll go and check what is different between my laptop and my PC...
_________________________
= Taym =
MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg

Top
#342326 - 14/02/2011 23:38 Re: Slashes in Filenames under Windows 7 [Re: Taym]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
What Unicode though? 8bit or 16bit? wink
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#342327 - 14/02/2011 23:38 Re: Slashes in Filenames under Windows 7 [Re: Taym]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Not quite. Whether the font used is Unicode and whether it has all the glyphs is important.

Top
#342328 - 14/02/2011 23:52 Re: Slashes in Filenames under Windows 7 [Re: hybrid8]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
This actually bit me at work recently. I ran a command in powershell, and redirected the output to create a text file. On windows, looked fine. On OS X, looked fine. Sent it off to a Gentoo Linux box, and things barfed, as it claimed it was a binary file. Looked deeper, and Powershell created a UTF-16 file, with a BOM marker, set to little endian. The Gentoo box didn't like it.

First CR/LF nightmares, and now UTF madness. For basic "text". ugg.

Top
#342329 - 14/02/2011 23:57 Re: Slashes in Filenames under Windows 7 [Re: drakino]
hybrid8
carpal tunnel

Registered: 12/11/2001
Posts: 7738
Loc: Toronto, CANADA
WIth a BOM? Surprising it didn't work. It's files without a BOM that a lot of program will barf at. Though I suppose if the program is non-unicode then it's going to go to crap no matter what.
_________________________
Bruno
Twisted Melon : Fine Mac OS Software

Top
#342333 - 15/02/2011 00:34 Re: Slashes in Filenames under Windows 7 [Re: drakino]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Linux itself doesn't have any notion of the contents of a file. What program barfed?
_________________________
Bitt Faulk

Top
#342368 - 15/02/2011 13:57 Re: Slashes in Filenames under Windows 7 [Re: wfaulk]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Most of the common command line tools did, like less. Same ones were happy on OS X. Being Gentoo, something was likely not compiled in somewhere. Not a big deal, as the way Powershell saved it was also doubling the size, so fixing the issue there was more useful then trying to get Gentoo to be happy with UTF-16 LE.

Top