summaryrefslogtreecommitdiff
path: root/src/fs/Charset.hxx
AgeCommit message (Collapse)Author
2018-11-19check.h: remove obsolete headerMax Kellermann
Since we switched from autotools to Meson in commit 94592c14062d5afc9482d11baa401648082022c0, we don't need to include `config.h` early to properly enable large file support. Meson passes the required macros on the compiler command line instead of defining them in `config.h`. This means we can include `config.h` at any time, whenever we want to check its macros, and there are no ordering constraints.
2018-10-31*: copyright year 2018Max Kellermann
2018-08-20Compiler.h: move to util/Max Kellermann
2017-12-12*: check defined(_WIN32) instead of defined(WIN32)Max Kellermann
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
2017-05-08*: remove "pure" and "const" attributes from throwing functionsMax Kellermann
The "pure" and "const" attributes are not so well-defined, and a recent clang version implements an optimization which pushes the definition's boundary beyond what I believed it was. clang now assumes that functions declared "pure" cannot throw exceptions, even if they lack the "noexcept" specification. When compiled with this new clang version, MPD will crash randomly if an exception happens to get thrown by such as "pure" function (https://github.com/MusicPlayerDaemon/MPD/issues/41). This commit removes all such misplaced "pure" and "const" attributes, closing #41.
2017-05-08*: add "noexcept" to many, many function prototypesMax Kellermann
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
2017-01-03update copyright yearMax Kellermann
2016-11-10util/Error: remove obsolete classMax Kellermann
2016-04-21fs/Charset: throw exception on errorMax Kellermann
2016-04-13lib/icu/Converter: Create() throws exception on errorMax Kellermann
2016-04-12util/StringPointer: rename typedef pointer to pointer_typeMax Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-06-26lib/icu/Converter: remove GLib implementationMax Kellermann
We don't need this anymore: Win32 doesn't use this library at all, and everything else has either iconv() or libicu.
2015-06-26lib/icu/Converter: add iconv() implementationMax Kellermann
2015-06-22fs/Charset: hard-code Windows to ACPMax Kellermann
Don't define HAVE_FS_CHARSET, and make GetFSCharset() return "ACP" instead of "UTF-8". Ignore the configuration setting, which had no effect anyway.
2015-02-25fs/{Allocated,}Path,Charset: use PathTraitsFS typedefsMax Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-12-01lib/icu/Converter: add ICU-based backendMax Kellermann
2014-11-30fs/Charset: return std::string from PathFromUTF8()Max Kellermann
Don't expose pointer that requires the caller to invoke g_free(), because that's GLib-only.
2014-11-29fs/Charset: add DeinitFSCharset()Max Kellermann
2014-11-29fs/Charset: add macro HAVE_FS_CHARSETMax Kellermann
2014-11-29fs/Charset: return Error on SetFSCharset() failureMax Kellermann
Don't abort the process, let the caller decide instead.
2014-01-13copyright year 2014Max Kellermann
2013-10-17fs/Charset: GetFSCharset() returns "utf-8" by defaultMax Kellermann
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: don't allow nullptr argumentsMax Kellermann
2013-10-17fs/Path: move configuration code to Config.cxxMax Kellermann