diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-13 04:59:57 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-13 04:59:57 +0000 |
commit | 1004890e253453faba81126028986f075e5fc5e7 (patch) | |
tree | 053e319b9c64d0b4a47bd61311007f01150109a7 /src/utf8.h | |
parent | 0927c61533d410ffce6c34f279e1280edab0fbd6 (diff) | |
download | mpd-1004890e253453faba81126028986f075e5fc5e7.tar.gz mpd-1004890e253453faba81126028986f075e5fc5e7.tar.xz mpd-1004890e253453faba81126028986f075e5fc5e7.zip |
lots of fsCharset, utf8/ascii converting clean-up and robustness stuff
Also, if fsCharsetToUtf8 can't convert to valid UTF-8, then don't add
it to the db, this way clients don't have to worry about weirdness and it
will force ppl to convert it.
git-svn-id: https://svn.musicpd.org/mpd/trunk@711 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/utf8.h')
-rw-r--r-- | src/utf8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utf8.h b/src/utf8.h index 1928a8a81..bf8f1a9c9 100644 --- a/src/utf8.h +++ b/src/utf8.h @@ -5,6 +5,8 @@ unsigned char * asciiToUtf8(unsigned char c); unsigned char * asciiStrToUtf8Dup(unsigned char * ascii); +unsigned char * utf8StrToAsciiDup(unsigned char * utf8); + unsigned char utf8ToAscii(unsigned char * utf8); int validateUtf8Char(unsigned char * utf8Char); |