fs/Charset: return Error on SetFSCharset() failure

Don't abort the process, let the caller decide instead.
This commit is contained in:
Max Kellermann
2014-11-29 22:33:30 +01:00
parent 5b1db917bc
commit fd2c6b8a4b
5 changed files with 37 additions and 17 deletions

View File

@@ -25,6 +25,8 @@
#include <string>
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.