Max Kellermann
|
6513ff92a7
|
fs/Charset: throw exception on error
|
2016-04-21 14:23:55 +02:00 |
|
Max Kellermann
|
bec6fa4ad7
|
lib/icu/Converter: throw exception on error
|
2016-04-21 14:03:27 +02:00 |
|
Max Kellermann
|
b9f535cd49
|
lib/icu/Win32: throw exception on error
|
2016-04-21 10:15:40 +02:00 |
|
Max Kellermann
|
01b68db30e
|
lib/icu/Converter: Create() throws exception on error
|
2016-04-13 10:04:19 +02:00 |
|
Max Kellermann
|
9b85446808
|
util/StringPointer: rename typedef pointer to pointer_type
|
2016-04-12 22:53:06 +02:00 |
|
Max Kellermann
|
1aee89f5ea
|
*: include cleanup (using iwyu)
|
2016-03-01 22:08:13 +01:00 |
|
Max Kellermann
|
1d67aa7bf2
|
update copyright year to 2016
|
2016-02-26 17:54:05 +01:00 |
|
Max Kellermann
|
8d11577ff2
|
lib/icu/{Converter,Collate}: return AllocatedString
|
2015-06-25 23:44:16 +02:00 |
|
Max Kellermann
|
aecfcaa8a2
|
lib/icu/Win32: wrappers for WideCharToMultiByte(), MultiByteToWideChar()
|
2015-06-23 13:20:11 +02:00 |
|
Max Kellermann
|
73bd6af0f9
|
fs/Charset: hard-code Windows to ACP
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-06-22 22:20:10 +02:00 |
|
Max Kellermann
|
65ff72cdf8
|
fs/Traits: enable _UNICODE on Windows
Use wchar_t for everything on Windows. Solves a lot of filesystem
charset problems.
|
2015-03-05 10:15:10 +01:00 |
|
Max Kellermann
|
eb174d5ba3
|
fs/{Allocated,}Path,Charset: use PathTraitsFS typedefs
|
2015-02-25 19:17:45 +01:00 |
|
Max Kellermann
|
60e6d1d61b
|
fs/Charset: convert #ifdef to regular "if"
|
2015-02-09 07:44:21 +01:00 |
|
Max Kellermann
|
975e275030
|
fs/Charset: change FixSeparators() API to use std::string&&
|
2015-02-08 17:52:01 +00:00 |
|
Max Kellermann
|
712ed555e6
|
Copyright year 2015
|
2015-01-01 19:48:13 +01:00 |
|
Max Kellermann
|
412bedb697
|
Merge branch 'v0.19.x'
|
2014-12-26 14:40:32 +01:00 |
|
Max Kellermann
|
940cab8620
|
Merge branch 'v0.18.x' into v0.19.x
|
2014-12-26 14:28:52 +01:00 |
|
Max Kellermann
|
53f4044890
|
util/{ASCII,UriUtil}, ...: work around -Wtautological-pointer-compare
New in clang 3.6.
|
2014-12-26 13:43:32 +01:00 |
|
Max Kellermann
|
87c88fcb27
|
fs/Charset: move code to wrapper class IcuConverter
Prepare for a ICU-based backend without GLib.
|
2014-11-30 00:31:13 +01:00 |
|
Max Kellermann
|
4f80a129f1
|
fs/Charset: return std::string from PathFromUTF8()
Don't expose pointer that requires the caller to invoke g_free(),
because that's GLib-only.
|
2014-11-30 00:28:27 +01:00 |
|
Max Kellermann
|
6987f2ba82
|
fs/Charset: use macro HAVE_FS_CHARSET internally
|
2014-11-30 00:27:58 +01:00 |
|
Max Kellermann
|
563db580ae
|
fs/Charset: add DeinitFSCharset()
|
2014-11-29 23:47:48 +01:00 |
|
Max Kellermann
|
125daea16a
|
fs/Charset: add macro HAVE_FS_CHARSET
|
2014-11-29 23:36:44 +01:00 |
|
Max Kellermann
|
fd2c6b8a4b
|
fs/Charset: return Error on SetFSCharset() failure
Don't abort the process, let the caller decide instead.
|
2014-11-29 23:36:44 +01:00 |
|
Max Kellermann
|
c48733e34f
|
fs/Charset: work around clang's -Wunused-const-variable
MPD_PATH_MAX_UTF8 is only used by GLib-specific code currently.
|
2014-10-25 00:07:25 +02:00 |
|
Max Kellermann
|
8fe004e98e
|
fs/Charset: use "UTF-8" instead of "utf-8" as the default value
The upper-case name seems to be the canonical one.
|
2014-02-23 22:03:40 +01:00 |
|
Max Kellermann
|
ce925ba56f
|
fs/Charset: disable if GLib is disabled
|
2014-02-17 22:48:26 +01:00 |
|
Max Kellermann
|
4f83c60296
|
copyright year 2014
|
2014-01-13 22:31:55 +01:00 |
|
Denis Krjuchkov
|
62dc8e4131
|
fs/Charset.cxx: replace \ with / when converting path to UTF-8 on Windows
|
2013-12-05 15:04:52 +06:00 |
|
Max Kellermann
|
f90abe9530
|
include cleanup using iwyu
|
2013-11-28 11:50:54 +01:00 |
|
Max Kellermann
|
20597b3632
|
*: use nullptr instead of NULL
|
2013-10-28 23:58:17 +01:00 |
|
Max Kellermann
|
7fec2b02d4
|
fs/Charset: GetFSCharset() returns "utf-8" by default
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-17 22:47:09 +02:00 |
|
Max Kellermann
|
608a98c873
|
fs/Charset: default filesystem charset is UTF-8
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-17 22:42:22 +02:00 |
|
Max Kellermann
|
f951e5356b
|
fs/Charset: don't allow nullptr arguments
|
2013-10-17 22:39:06 +02:00 |
|
Max Kellermann
|
080ee87e07
|
fs/Path: move configuration code to Config.cxx
|
2013-10-17 22:29:03 +02:00 |
|