diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-13 13:52:16 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-13 13:52:16 +0000 |
commit | 8c96c2d363a71ecfbadf1876ac01c16f650bc6e7 (patch) | |
tree | dee662af13bd0b0faa4802e6597025a840b41713 /src/charConv.c | |
parent | 4920ee719a2490b7d661d4373640e8665f696976 (diff) | |
download | mpd-8c96c2d363a71ecfbadf1876ac01c16f650bc6e7.tar.gz mpd-8c96c2d363a71ecfbadf1876ac01c16f650bc6e7.tar.xz mpd-8c96c2d363a71ecfbadf1876ac01c16f650bc6e7.zip |
rename all ascii/utf8 stuff to latin1/utf8
git-svn-id: https://svn.musicpd.org/mpd/trunk@718 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/charConv.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/charConv.c b/src/charConv.c index 402683e18..85eba7e88 100644 --- a/src/charConv.c +++ b/src/charConv.c @@ -34,10 +34,10 @@ char * char_conv_from = NULL; mpd_sint8 char_conv_same = 0; mpd_sint8 char_conv_use_iconv = 0; -/* 1 is to use asciiToUtf8 - 0 is not to use ascii/utf8 converter - -1 is to use utf8ToAscii*/ -mpd_sint8 char_conv_asciiToUtf8 = 0; +/* 1 is to use latin1ToUtf8 + 0 is not to use latin1/utf8 converter + -1 is to use utf8ToLatin1*/ +mpd_sint8 char_conv_latin1ToUtf8 = 0; #define BUFFER_SIZE 1024 @@ -58,13 +58,13 @@ int setCharSetConversion(char * to, char * from) { } if(strcmp(to,"UTF-8")==0 && strcmp(from,"ISO-8859-1")==0) { - char_conv_asciiToUtf8 = 1; + char_conv_latin1ToUtf8 = 1; } else if(strcmp(to,"ISO-8859-1")==0 && strcmp(from,"UTF-8")==0) { - char_conv_asciiToUtf8 = -1; + char_conv_latin1ToUtf8 = -1; } - if(char_conv_asciiToUtf8!=0) { + if(char_conv_latin1ToUtf8!=0) { char_conv_to = strdup(to); char_conv_from = strdup(from); return 0; @@ -121,12 +121,12 @@ char * convStrDup(char * string) { } #endif - switch(char_conv_asciiToUtf8) { + switch(char_conv_latin1ToUtf8) { case 1: - return asciiStrToUtf8Dup(string); + return latin1StrToUtf8Dup(string); break; case -1: - return utf8StrToAsciiDup(string); + return utf8StrToLatin1Dup(string); break; } @@ -143,7 +143,7 @@ void closeCharSetConversion() { char_conv_to = NULL; char_conv_from = NULL; char_conv_same = 0; - char_conv_asciiToUtf8 = 0; + char_conv_latin1ToUtf8 = 0; char_conv_use_iconv = 0; } } |