Exclude Private Area from isWideGraphChar.
This is a stopgap fix for Bug #942. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2648 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
Changes towards version 0.7:
|
Changes towards version 0.7:
|
||||||
|
- The Unicode Private Use Area is no longer considered printable. This
|
||||||
|
is a stopgap to handle unusual behavior with text entry under OS X.
|
||||||
|
See bug #942 for more details - Michael
|
||||||
- Do not rely on GL_UNPACK_SKIP_* arguments, which some OpenGL drivers
|
- Do not rely on GL_UNPACK_SKIP_* arguments, which some OpenGL drivers
|
||||||
mishandle (Bug #914) - Michael
|
mishandle (Bug #914) - Michael
|
||||||
- Do not overwrite GLOBAL_SIS (CrewEnlisted) when leaving Hyperspace
|
- Do not overwrite GLOBAL_SIS (CrewEnlisted) when leaving Hyperspace
|
||||||
|
|||||||
@@ -501,7 +501,14 @@ int
|
|||||||
isWideGraphChar(wchar_t ch)
|
isWideGraphChar(wchar_t ch)
|
||||||
{ // this is not technically sufficient, but close enough for us
|
{ // this is not technically sufficient, but close enough for us
|
||||||
// we'll consider all non-control (CO and C1) chars in 'graph' class
|
// we'll consider all non-control (CO and C1) chars in 'graph' class
|
||||||
return (ch > 0xa0) || (ch > 0x20 && ch < 0x7f);
|
// except for the "Private Use Area" (0xE000 - 0xF8FF)
|
||||||
|
|
||||||
|
// TODO: The private use area is really only glommed by OS X,
|
||||||
|
// and even there, not all of it. (Delete and Backspace both
|
||||||
|
// end up producing characters there -- see bug #942 for the
|
||||||
|
// gory details.)
|
||||||
|
return (ch > 0xa0 && (ch < 0xE000 || ch > 0xF8FF)) ||
|
||||||
|
(ch > 0x20 && ch < 0x7f);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user