Ben Bryant
2005-10-15 19:17:29 UTC
I think I understand most of this issue in terms of Michael Kaplan's
excellent postings in:
Whats up with the Korean (Unicode) sort?
http://blogs.msdn.com/michkap/archive/2004/12/14/284838.aspx
and When is a backslash not a backslash?
http://blogs.msdn.com/michkap/archive/2005/09/17/469941.aspx
and others on TheOldNewThing and Larry Osterman
I don't know how they use their keyboards in Japan, but I am assuming they
have a way of typing a yen sign and they use the same thing for a path
separator when typing a pathname into an edit box. Assuming it is a Unicode
edit box, how does the edit box (or really the Windows OS in generating the
keydown message) decide which code point to use for the Yen sign U+005c or
U+00a5? I think you would not have this question in code page 932 since it
would be 5c.
Okay, now assuming it is U+005c in order to support Unicode pathnames, would
there be any way other than processing of the edit box text value to change
them to U+00a5? I could image a flag indicating "treat yens as U+00a5" in
this edit box, or "treat yens as U+005c" in this other edit box depending on
whether it is for regular text including currency discussions, or
Windows/DOS pathnames.
Thanks,
Ben
http://codesnipers.com/?q=blog/3
excellent postings in:
Whats up with the Korean (Unicode) sort?
http://blogs.msdn.com/michkap/archive/2004/12/14/284838.aspx
and When is a backslash not a backslash?
http://blogs.msdn.com/michkap/archive/2005/09/17/469941.aspx
and others on TheOldNewThing and Larry Osterman
I don't know how they use their keyboards in Japan, but I am assuming they
have a way of typing a yen sign and they use the same thing for a path
separator when typing a pathname into an edit box. Assuming it is a Unicode
edit box, how does the edit box (or really the Windows OS in generating the
keydown message) decide which code point to use for the Yen sign U+005c or
U+00a5? I think you would not have this question in code page 932 since it
would be 5c.
Okay, now assuming it is U+005c in order to support Unicode pathnames, would
there be any way other than processing of the edit box text value to change
them to U+00a5? I could image a flag indicating "treat yens as U+00a5" in
this edit box, or "treat yens as U+005c" in this other edit box depending on
whether it is for regular text including currency discussions, or
Windows/DOS pathnames.
Thanks,
Ben
http://codesnipers.com/?q=blog/3