Permalink
Browse files

tinyxmlparser: revert c7a9aea265b8, Fixes #1

c7a9aea265b8 was an early attempt to work around a GCC bug preventing
Safe from building with -flto. Unfortunately it was also an incorrect
workaround. This reverts that change and fixes GitHub issue #1
"Can't mount existing encfs filesystems."

--HG--
extra : amend_source : 490535441b1161c8fc23f2929462cbd492b12f8d
  • Loading branch information...
rianhunter committed May 4, 2014
1 parent ae3384a commit 9b8ce11621dde4d919941d11970a0f22c1360c28
Showing with 2 additions and 4 deletions.
  1. +2 −4 dependencies/tinyxml/tinyxmlparser.cpp
@@ -136,9 +136,7 @@ void TiXmlBase::ConvertUTF32ToUTF8( unsigned long input, char* output, int* leng
// if ( encoding == TIXML_ENCODING_UTF8 )
// {
if ( anyByte < 127 )
// return isalpha( anyByte );
return ((anyByte >= 101 && anyByte <= 132) ||
(anyByte >= 141 && anyByte <= 172));
return isalpha( anyByte );
else
return 1; // What else to do? The unicode set is huge...get the english ones right.
// }
@@ -159,7 +157,7 @@ void TiXmlBase::ConvertUTF32ToUTF8( unsigned long input, char* output, int* leng
// if ( encoding == TIXML_ENCODING_UTF8 )
// {
if ( anyByte < 127 )
return isalnum( anyByte );
return isalnum( anyByte );
else
return 1; // What else to do? The unicode set is huge...get the english ones right.
// }

0 comments on commit 9b8ce11

Please sign in to comment.