summaryrefslogtreecommitdiff
path: root/src/fs/Charset.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-04-12 22:18:36 +0200
committerMax Kellermann <max@duempel.org>2016-04-13 10:04:19 +0200
commit01b68db30e6b4e9e036e0ae1adcdc2a35d102e43 (patch)
treed906c65e052c78396ee54c6e8b43954e0ac6de83 /src/fs/Charset.cxx
parent33fdaa5b6d66a9a296e8ba170098b10f24be523b (diff)
lib/icu/Converter: Create() throws exception on error
Diffstat (limited to 'src/fs/Charset.cxx')
-rw-r--r--src/fs/Charset.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/fs/Charset.cxx b/src/fs/Charset.cxx
index f4e9d65d3..c44238faa 100644
--- a/src/fs/Charset.cxx
+++ b/src/fs/Charset.cxx
@@ -40,19 +40,17 @@ static std::string fs_charset;
static IcuConverter *fs_converter;
-bool
-SetFSCharset(const char *charset, Error &error)
+void
+SetFSCharset(const char *charset)
{
assert(charset != nullptr);
assert(fs_converter == nullptr);
- fs_converter = IcuConverter::Create(charset, error);
- if (fs_converter == nullptr)
- return false;
+ fs_converter = IcuConverter::Create(charset);
+ assert(fs_converter != nullptr);
FormatDebug(path_domain,
"SetFSCharset: fs charset is: %s", fs_charset.c_str());
- return true;
}
#endif