aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Charset.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-25fs/{Allocated,}Path,Charset: use PathTraitsFS typedefsMax Kellermann1-8/+7
2015-02-09fs/Charset: convert #ifdef to regular "if"Max Kellermann1-3/+5
2015-02-08fs/Charset: change FixSeparators() API to use std::string&&Max Kellermann1-11/+6
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-12-26util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compareMax Kellermann1-0/+6
New in clang 3.6.
2014-11-30fs/Charset: move code to wrapper class IcuConverterMax Kellermann1-64/+13
Prepare for a ICU-based backend without GLib.
2014-11-30fs/Charset: return std::string from PathFromUTF8()Max Kellermann1-2/+2
Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only.
2014-11-30fs/Charset: use macro HAVE_FS_CHARSET internallyMax Kellermann1-4/+4
2014-11-29fs/Charset: add DeinitFSCharset()Max Kellermann1-0/+5
2014-11-29fs/Charset: add macro HAVE_FS_CHARSETMax Kellermann1-1/+1
2014-11-29fs/Charset: return Error on SetFSCharset() failureMax Kellermann1-8/+19
Don't abort the process, let the caller decide instead.
2014-10-25fs/Charset: work around clang's -Wunused-const-variableMax Kellermann1-1/+2
MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
2014-02-23fs/Charset: use "UTF-8" instead of "utf-8" as the default valueMax Kellermann1-2/+2
The upper-case name seems to be the canonical one.
2014-02-17fs/Charset: disable if GLib is disabledMax Kellermann1-0/+17
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-12-05fs/Charset.cxx: replace \ with / when converting path to UTF-8 on WindowsDenis Krjuchkov1-3/+24
2013-11-28include cleanup using iwyuMax Kellermann1-2/+0
2013-10-28*: use nullptr instead of NULLMax Kellermann1-3/+3
2013-10-17fs/Charset: GetFSCharset() returns "utf-8" by defaultMax Kellermann1-2/+2
If fs_charset is empty, i.e. we're using the default "utf-8", GetFSCharset() should return exactly that instead of an empty std::string.
2013-10-17fs/Charset: default filesystem charset is UTF-8Max Kellermann1-0/+6
Implement a fast path for UTF-8 which leaves fs_charset empty, and don't assign a value to fs_charset if there's no configuration.
2013-10-17fs/Charset: don't allow nullptr argumentsMax Kellermann1-2/+3
2013-10-17fs/Path: move configuration code to Config.cxxMax Kellermann1-145/+34
2013-10-17fs/Path: move path_domain to Domain.hxxMax Kellermann1-3/+1
2013-10-17fs/Path: make fs_charset staticMax Kellermann1-1/+1
2013-10-17fs/Limits: convert macro to "constexpr"Max Kellermann1-1/+1
2013-10-17fs/Path: move MPD_PATH_MAX to Limits.hxxMax Kellermann1-1/+2
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-10-15*: use WIN32 instead of G_OS_WIN32Max Kellermann1-3/+3
2013-10-14fs/Path: add separator constants/functionsMax Kellermann1-2/+19
2013-10-14fs/Path: add method RelativeFS()Max Kellermann1-0/+22
Move code from map_fs_to_utf8().
2013-10-02Log: new logging library APIMax Kellermann1-5/+5
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-10-02filesystem/Path: use std::stringMax Kellermann1-0/+20
2013-09-12Path: add FromUTF8() overload that returns an ErrorMax Kellermann1-0/+13
2013-09-12ConfigPath: move path_domain to system/Path.cxxMax Kellermann1-0/+3
2013-09-05mpd_error.h: remove obsolete headerMax Kellermann1-2/+2
Migrate the remaining callers to FatalError().
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+1
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-01-28Path::FromUTF8() returns nulled instance on error, add error handling where ↵Denis Krjuchkov1-3/+0
required
2013-01-28Path: convert remaining funcs to methods, keep fs_charset as std::stringDenis Krjuchkov1-16/+10
2013-01-28Path: merge utf8_to_fs_charset() into Path::FromUTF8()Denis Krjuchkov1-3/+2
2013-01-28Path: convert fs_charset_to_utf8() to static method Path::ToUTF8()Denis Krjuchkov1-14/+21
2013-01-28Path: introduce MPD_PATH_MAX_UTF8Denis Krjuchkov1-0/+10
2013-01-26Path: ToUTF() returns std::stringDenis Krjuchkov1-0/+12
2013-01-22Path: move to fs subdirectoryDenis Krjuchkov1-1/+1
2013-01-17path: convert to C++Max Kellermann1-2/+2
2013-01-10path: move code to IsSupportedCharset()Max Kellermann1-6/+15
2013-01-10path: make the "win_charset" buffer staticMax Kellermann1-1/+1
It is illegal to use it after going out of scope.
2011-10-23path: autodetect filesystem encoding on Win32Denis Krjuchkov1-0/+16
WinAPI explicitly declares filesystem encoding. It can be determined by GetACP(). Use that instead of Glib routine that always "detects" UTF-8 on Win32, which is incorrect for MPD case.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-09-25eliminate g_error() usageThomas Jansen1-1/+2
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1