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

@ -911,9 +911,13 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
target->catalog = src->bootcat;
/* default to locale charset */
/* ??? ts Nov 25 2008 :
Shouldn't this go to library initialization or even to app ?
*/
setlocale(LC_CTYPE, "");
target->input_charset = strdup(nl_langinfo(CODESET));
target->input_charset = strdup(iso_get_local_charset(0));
if (target->input_charset == NULL) {
iso_image_unref(src);
free(target);