summaryrefslogtreecommitdiff
path: root/src/command.c
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2000-11-26 04:59:38 +0000
committerMichael Jennings <mej@kainx.org>2000-11-26 04:59:38 +0000
commitf6c6837bf9b512bed4881e8fbf3ee61e7b26d5e1 (patch)
treea7533a2564e152209b5c2b5c7a950b2f90e91484 /src/command.c
parent1a4de140ef7b7bbe9fc81243bede63ee03fbb5ae (diff)
downloadeterm-f6c6837bf9b512bed4881e8fbf3ee61e7b26d5e1.tar.gz
Minor fix to the patch from the other day.
SVN revision: 3922
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 3a3f592..662e703 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1762,7 +1762,7 @@ init_locale(void)
char *locale = NULL;
locale = setlocale(LC_ALL, "");
- TermWin.fontset = (XFontSet) -1;
+ TermWin.fontset = (XFontSet) 0;
if (locale == NULL) {
print_error("Setting locale failed.\n");
} else {
@@ -1776,7 +1776,7 @@ init_locale(void)
#else
TermWin.fontset = create_fontset(etfonts[def_font_idx], "-misc-fixed-medium-r-semicondensed--13-*-75-*-c-*-iso10646-1");
#endif
- if (xim_real_init() != -1) {
+ if ((TermWin.fontset == (XFontSet) 0) || (xim_real_init() != -1)) {
return;
}