aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix compiler errors without locale.hMax Kellermann2008-10-021-0/+4
| | | | | The code did not compile when HAVE_LOCALE_H was not set. Also don't compile all that code in charset.c, when there is no locale.h.
* charset: charset_init() returns character setMax Kellermann2008-10-021-1/+2
| | | | | Don't pass "noconvert" to charset_init(). Let charset_init() determine that with g_get_charset() and return its name.
* charset: renamed my_strlen() to utf8_width()Max Kellermann2008-10-021-1/+2
| | | | | | my_strlen() is a bad name for the function, since the return value is not a length, but a visible width on the screen. Rename it to utf8_width() and change its return type to "unsigned".
* moved code to charset.cMax Kellermann2008-10-021-0/+36
Move everything which deals with UTF-8 strings and character set conversion to charset.c, header charset.h.