- ripped out a lot of unused code dealing with utf8

This commit is contained in:
Mark Vejvoda
2012-11-15 08:12:40 +00:00
parent d0006db4a1
commit 4a0617b12c
5 changed files with 89 additions and 1227 deletions

View File

@@ -88,7 +88,7 @@ void Properties::load(const string &path, bool clearCurrentProperties) {
if(lineBuffer[0] != '\0') {
// If the file is NOT in UTF-8 format convert each line
if(is_utf8_language == false && Font::forceLegacyFonts == false) {
char *utfStr = String::ConvertToUTF8(&lineBuffer[0]);
char *utfStr = ConvertToUTF8(&lineBuffer[0]);
//printf("\nBefore [%s] After [%s]\n",&lineBuffer[0],utfStr);
@@ -98,7 +98,7 @@ void Properties::load(const string &path, bool clearCurrentProperties) {
delete [] utfStr;
}
else if(is_utf8_language == true && Font::forceLegacyFonts == true) {
char *asciiStr = String::ConvertFromUTF8(&lineBuffer[0]);
char *asciiStr = ConvertFromUTF8(&lineBuffer[0]);
//printf("\nBefore [%s] After [%s]\n",&lineBuffer[0],utfStr);