diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 22:42:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 22:42:22 +0200 |
commit | 608a98c873b94826a98b8dbdf17aa02320de8776 (patch) | |
tree | 80b5714da2c5cd8fab07d0148a821c4d2f2efed6 /src/fs/Config.cxx | |
parent | f951e5356b7b6fb1126e367e641882f1e5192f76 (diff) | |
download | mpd-608a98c873b94826a98b8dbdf17aa02320de8776.tar.gz mpd-608a98c873b94826a98b8dbdf17aa02320de8776.tar.xz mpd-608a98c873b94826a98b8dbdf17aa02320de8776.zip |
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.
Diffstat (limited to 'src/fs/Config.cxx')
-rw-r--r-- | src/fs/Config.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fs/Config.cxx b/src/fs/Config.cxx index e08e9f0bf..3d7e99b4a 100644 --- a/src/fs/Config.cxx +++ b/src/fs/Config.cxx @@ -60,11 +60,6 @@ ConfigureFS() #endif } - if (charset) { + if (charset != nullptr) SetFSCharset(charset); - } else { - LogDebug(path_domain, - "setting filesystem charset to ISO-8859-1"); - SetFSCharset("ISO-8859-1"); - } } |