aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Charset.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-26util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compareMax Kellermann1-0/+6
New in clang 3.6.
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
2009-11-12include config.h in all sourcesMax Kellermann1-0/+1
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
2009-02-20path: don't export path_set_fs_charset()Max Kellermann1-1/+2
The function path_set_fs_charset() is only used in path.c.
2009-02-20path: validate configured character setMax Kellermann1-0/+11
2009-01-25use config_get_string() instead of config_get_param()Max Kellermann1-5/+2
config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct.
2009-01-17conf: no CamelCase, part IMax Kellermann1-1/+2
Renamed functions, types, variables.
2009-01-08path: include cleanupMax Kellermann1-1/+0
2009-01-08path: allocate buffer in fs_charset conversion functionsMax Kellermann1-19/+10
Don't use fixed static buffers. GLib allocates a new string for us anyway, let's just return this one instead of copying it.
2009-01-04path, tag: don't allocate GError for charset conversionMax Kellermann1-10/+4
Pass NULL instead of &error to g_convert(). We're not interested in the error object.
2009-01-04path: removed pfx_dir()Max Kellermann1-17/+0
Use GLib's g_build_filename() instead of pfx_dir().