From 6eec961a6848be1e1ce5d7e73f0fc73fcd9a9792 Mon Sep 17 00:00:00 2001 From: mogami Date: Mon, 13 Oct 2003 01:48:59 +0000 Subject: [PATCH] =?utf8?q?=E5=8D=8A=E8=A7=92=E3=82=AB=E3=82=BF=E3=82=AB?= =?utf8?q?=E3=83=8A=E3=81=AE=E5=88=A4=E5=AE=9A=E3=81=AB=20unsigned=20char?= =?utf8?q?=E3=81=A7=E3=82=82=20signed=20char=20=E3=81=A7=E3=82=82=E6=AD=A3?= =?utf8?q?=E3=81=97=E3=81=8F=E5=8B=95=E3=81=8Fiskana()=E3=82=92=E4=BD=BF?= =?utf8?q?=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/autopick.c | 5 ++--- src/util.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/autopick.c b/src/autopick.c index 9ed9d6057..de6dd9bec 100644 --- a/src/autopick.c +++ b/src/autopick.c @@ -3290,9 +3290,8 @@ static byte get_string_for_search(object_type **o_handle, cptr *search_strp) else #endif { -#ifdef SJIS - if (pos < len && - (isprint(c) || (0xa0 <= c && c <= 0xdf))) +#ifdef JP + if (pos < len && (isprint(c) || iskana(c))) #else if (pos < len && isprint(c)) #endif diff --git a/src/util.c b/src/util.c index 67db09f1d..f167b92a4 100644 --- a/src/util.c +++ b/src/util.c @@ -3327,9 +3327,8 @@ bool askfor_aux(char *buf, int len) else #endif { -#ifdef SJIS - if (pos < len && - (isprint(c) || (0xa0 <= c && c <= 0xdf))) +#ifdef JP + if (pos < len && (isprint(c) || iskana(c))) #else if (pos < len && isprint(c)) #endif -- 2.11.0