From: handa Date: Thu, 9 Dec 2004 11:49:42 +0000 (+0000) Subject: (SaveProc, DumpImageProc, FileDialogProc, read_file): X-Git-Tag: REL-1-2-0~61 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=73d4dd23b8a0e408c5d5287bd8b0bfa8beb12924;p=m17n%2Fm17n-lib.git (SaveProc, DumpImageProc, FileDialogProc, read_file): Decode by Mcoding_utf_8_full, not Mcoding_utf_8. --- diff --git a/example/medit.c b/example/medit.c index 52c7e18..37ced11 100644 --- a/example/medit.c +++ b/example/medit.c @@ -1634,7 +1634,7 @@ SaveProc (Widget w, XtPointer client_data, XtPointer call_data) mtext_detach_property (selection); } - mconv_encode_stream (Mcoding_utf_8, mt, fp); + mconv_encode_stream (Mcoding_utf_8_full, mt, fp); fclose (fp); if (from >= 0) select_region (from, to); @@ -1969,7 +1969,7 @@ DumpImageProc (Widget w, XtPointer client_data, XtPointer call_data) mdump = popen ("mdump -q", "w"); if (! mdump) return; - converter = mconv_stream_converter (Mcoding_utf_8, mdump); + converter = mconv_stream_converter (Mcoding_utf_8_full, mdump); mconv_encode_range (converter, mt, from, to); mconv_free_converter (converter); fclose (mdump); @@ -2200,7 +2200,7 @@ FileDialogProc (Widget w, XtPointer client_data, XtPointer call_data) m17n_object_unref (mt); if (fp) { - mt = mconv_decode_stream (Mcoding_utf_8, fp); + mt = mconv_decode_stream (Mcoding_utf_8_full, fp); fclose (fp); if (! mt) mt = mtext ();