New API functions iso_set_local_charset() and iso_get_local_charset()

This commit is contained in:
2008-11-25 12:13:51 +01:00
parent 88ef351e74
commit eccaac09cc
4 changed files with 70 additions and 3 deletions

View File

@ -1996,8 +1996,12 @@ int iso_image_filesystem_new(IsoDataSource *src, struct iso_read_opts *opts,
data->dir_mode = opts->dir_mode & ~S_IFMT;
data->msgid = msgid;
/* ??? ts Nov 25 2008 :
Shouldn't this go to library initialization or even to app ?
*/
setlocale(LC_CTYPE, "");
data->local_charset = strdup(nl_langinfo(CODESET));
data->local_charset = strdup(iso_get_local_charset(0));
if (data->local_charset == NULL) {
ret = ISO_OUT_OF_MEM;
goto fs_cleanup;