use 0xFFFD for INVALID_CHAR ("U+FFFD REPLACEMENT CHARACTER") instead of 0xFFFF

This commit is contained in:
Glenn Maynard
2004-05-17 21:33:35 +00:00
parent e72dcafae5
commit e9b5ce0e88
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ static void InitCharAliases()
return; return;
CharAliases["default"] = Font::DEFAULT_GLYPH; /* ? */ CharAliases["default"] = Font::DEFAULT_GLYPH; /* ? */
CharAliases["invalid"] = INVALID_CHAR; /* 0xFFFF */ CharAliases["invalid"] = INVALID_CHAR; /* 0xFFFD */
/* The comments here are UTF-8; they won't show up in VC6 (use your /* The comments here are UTF-8; they won't show up in VC6 (use your
* imagination). */ * imagination). */
+1 -1
View File
@@ -953,7 +953,7 @@ bool utf8_is_valid( const CString &s )
return true; return true;
} }
const wchar_t INVALID_CHAR = 0xFFFF; const wchar_t INVALID_CHAR = 0xFFFD; /* U+FFFD REPLACEMENT CHARACTER */
wstring CStringToWstring( const CString &s ) wstring CStringToWstring( const CString &s )
{ {