OSDN Git Service
(root)
/
nkf
/
nkf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6759f
)
Shift_JIS で 1 バイト目が 0xe0 以上の文字があったときに、他の文字コードと判定する可能性があったのを修正
author
Rei FURUKAWA
<rei_furukawa@users.sourceforge.jp>
Wed, 5 Feb 2003 01:55:40 +0000
(
01:55
+0000)
committer
Rei FURUKAWA
<rei_furukawa@users.sourceforge.jp>
Wed, 5 Feb 2003 01:55:40 +0000
(
01:55
+0000)
nkf.c
patch
|
blob
|
history
diff --git
a/nkf.c
b/nkf.c
index
41508de
..
f48060b
100644
(file)
--- a/
nkf.c
+++ b/
nkf.c
@@
-1201,7
+1201,7
@@
void s_status(ptr, c)
case 0:
if (c <= DEL){
break;
- }else if (0xa1 <= c && c <= 0x
e
f){
+ }else if (0xa1 <= c && c <= 0x
d
f){
status_push_ch(ptr, SSO);
status_push_ch(ptr, c);
code_score(ptr);
@@
-1214,7
+1214,7
@@
void s_status(ptr, c)
}
break;
case 1:
- if ((0x40 <= c && c <= 0x7e) || (0x80 <= c && c <= 0xf
d
)){
+ if ((0x40 <= c && c <= 0x7e) || (0x80 <= c && c <= 0xf
c
)){
status_push_ch(ptr, c);
s2e_conv(ptr->buf[0], ptr->buf[1], &ptr->buf[0], &ptr->buf[1]);
code_score(ptr);