Page 1 of 1
Path separator symbol -- is "\" universal?
Posted: Sun Nov 14, 2004 7:47 am
by PB
Would this work on a Japanse version of Windows?
Code: Select all
If CreateFile(0,"C:\Program Files\test.txt")
WriteStringN("hello")
CloseFile(0)
EndIf
Reason for asking: I've just seen a screenshot of a Japanese app, and the
backslash symbol is replaced with a yen symbol, like so:
So does this mean we can't use a backslash in our apps if our app is going
to be used by the Japanese? Is there a locale setting that will return the
correct path separator character? Thanks for any advice on this.
Posted: Sun Nov 14, 2004 10:43 am
by dmoc
If anything I would have thought / is more universal (although poss not for w98)
Posted: Sun Nov 14, 2004 11:34 am
by GPI
DON'T USE FIXED SYSTEM-PATH.
On My sytem this folder is called "C:\Programme\". There exist routines for this (search in the forum or in
www.purearea.net )
Posted: Sun Nov 14, 2004 11:39 am
by thefool
Problem is if he has files in a data dir, he cant write "\data\image.bmp", if the backslash is replaced.
Posted: Sun Nov 14, 2004 12:20 pm
by PB
> DON'T USE FIXED SYSTEM-PATH
I'm not. I just want to know if a backslash will work on a Japanese system
when specifying ANY path. This topic is not about relative/absolute paths.
Posted: Sun Nov 14, 2004 1:06 pm
by blueznl
i think it will, didn't we have japanese users who can confirm this?
Posted: Mon Nov 15, 2004 4:27 pm
by NetSlayer
It has to work. Every Windows application uses the backslash.
If it didn't work the Japanese could only use applications made by Japanese people.
Maybe it is not displayed as "\" but internally it has to be "\".
Posted: Mon Nov 15, 2004 4:59 pm
by El_Choni
MSDN:
Q: Can international product developers expect the backslash and colon
hex code points in file paths to be the same all over the world?
I understand the backslash is the yen symbol in Japan, but the hex code
point works OK as the file path separator. Can the user configure the file
path separator?
A: Character 0x5c is always the directory delimiter, no matter what glyph
it is associated with in a particular code page (for example, the Yen
symbol in the Japanese code page). It's not user-configurable.
Posted: Mon Nov 15, 2004 8:11 pm
by PB
> A: Character 0x5c is always the directory delimiter, no matter what glyph
> it is associated with in a particular code page (for example, the Yen
> symbol in the Japanese code page). It's not user-configurable.
Thanks, El_Choni -- that solves the matter once-and-for-all.

Posted: Mon Nov 15, 2004 8:52 pm
by Num3
thefool wrote:Problem is if he has files in a data dir, he cant write "\data\image.bmp", if the backslash is replaced.
I found that on windows / or \ work the same, but on Linux use / because you'll get an error!