aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* configure.ac: added --disable-multibyteMax Kellermann2008-12-251-0/+4
| | | | | This allows you to disable wide character support, retaining multibyte character support.
* configure.ac: added --disable-locale optionMax Kellermann2008-12-251-3/+3
| | | | | Make locale.h mandatory. --disable-locale disables the locale.h check.
* disable more features with --enable-miniMax Kellermann2008-11-071-3/+3
| | | | | | | | | | | | | | Disable lots of smaller features which don't have a separate configure option: - xterm title - screen list - horizontal scrolling - MPD version number check - key binding checks - character set conversion - bitrate display - highlighting in the file browser - completion / history
* charset: don't allocate GErrorMax Kellermann2008-11-071-12/+4
| | | | | Since the GError return value of g_convert_*() is ignored by ncmpc, we don't need to retrieve it at all.
* configure.ac: added option --disable-wideMax Kellermann2008-10-061-1/+1
| | | | | | The configure option "--disable-wide" disables wide character support. This simplifies lots of internal calculations and makes the ncmpc binary leaner.
* charset: pass -1 instead of strlen()Max Kellermann2008-10-031-2/+2
| | | | | The GTK charset functions accept "-1" if the parameter is null terminated.
* fix compiler errors without locale.hMax Kellermann2008-10-021-0/+13
| | | | | 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: convert strings with fallbackMax Kellermann2008-10-021-24/+10
| | | | | Use g_convert_with_fallback() for charset conversion, and don't print a status bar message on error.
* charset: charset_init() returns character setMax Kellermann2008-10-021-6/+5
| | | | | 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-3/+3
| | | | | | 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/+116
Move everything which deals with UTF-8 strings and character set conversion to charset.c, header charset.h.