From fd2c6b8a4b059bd810ca8511fa8f66001843284c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 29 Nov 2014 22:33:30 +0100 Subject: fs/Charset: return Error on SetFSCharset() failure Don't abort the process, let the caller decide instead. --- src/fs/Charset.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fs/Charset.hxx') diff --git a/src/fs/Charset.hxx b/src/fs/Charset.hxx index 0a71d7c58..5a24e8d4b 100644 --- a/src/fs/Charset.hxx +++ b/src/fs/Charset.hxx @@ -25,6 +25,8 @@ #include +class Error; + /** * Gets file system character set name. */ @@ -32,8 +34,8 @@ gcc_const const char * GetFSCharset(); -void -SetFSCharset(const char *charset); +bool +SetFSCharset(const char *charset, Error &error); /** * Convert the path to UTF-8. -- cgit v1.2.3