From 73d4dd23b8a0e408c5d5287bd8b0bfa8beb12924 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 9 Dec 2004 11:49:42 +0000 Subject: [PATCH] (SaveProc, DumpImageProc, FileDialogProc, read_file): Decode by Mcoding_utf_8_full, not Mcoding_utf_8. --- example/medit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (); -- 1.7.10.4