#include <m17n-misc.h>
#include <m17n-X.h>
-#define VERSION "1.1"
+#define VERSION "1.2"
/* Global variables. */
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);
if (! fp)
FATAL_ERROR ("Can't read \"%s\"!\n", filename);
- mt = mconv_decode_stream (Mcoding_utf_8, fp);
+ mt = mconv_decode_stream (Mcoding_utf_8_full, fp);
fclose (fp);
if (! mt)
FATAL_ERROR ("Can't decode \"%s\" by UTF-8!\n", filename);
int from, to;
int old_y1;
+ hide_cursor ();
if (! SELECTEDP ())
{
MPlist *plist;
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);
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 ();
{
Widget form, BodyWidget, w;
char *fontset_name = NULL;
- int fontsize = 120;
+ int fontsize = 0;
char *initial_input_method = NULL;
int col = 80, row = 32;
/* Translation table for TextWidget. */
}
}
if (! filename)
- help_exit (argv[0], 1);
+ filename = "/dev/null";
mdatabase_dir = ".";
/* Initialize the m17n library. */
MFont *font;
mplist_put (plist, msymbol ("widget"), ShellWidget);
- if (fontset_name || fontsize != 120)
+ if (fontset_name || fontsize > 0)
{
MFontset *fontset = mfontset (fontset_name);