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:
0ed0649
)
Treat UTF_8 as non-japanese mode.
author
NARUSE Yui
<naruse@users.sourceforge.jp>
Fri, 20 Nov 2009 05:14:20 +0000
(14:14 +0900)
committer
NARUSE Yui
<naruse@users.sourceforge.jp>
Fri, 20 Nov 2009 05:14:20 +0000
(14:14 +0900)
nkf.c
patch
|
blob
|
history
diff --git
a/nkf.c
b/nkf.c
index
3acd430
..
e976bef
100644
(file)
--- a/
nkf.c
+++ b/
nkf.c
@@
-4858,7
+4858,8
@@
mime_putc(nkf_char c)
}
if (mimeout_mode <= 0) {
}
if (mimeout_mode <= 0) {
- if (c <= DEL && (output_mode==ASCII ||output_mode == ISO_8859_1)) {
+ if (c <= DEL && (output_mode==ASCII || output_mode == ISO_8859_1 ||
+ output_mode == UTF_8)) {
if (nkf_isspace(c)) {
int flag = 0;
if (mimeout_mode == -1) {
if (nkf_isspace(c)) {
int flag = 0;
if (mimeout_mode == -1) {
@@
-4949,7
+4950,8
@@
mime_putc(nkf_char c)
}
}else{
/* mimeout_mode == 'B', 1, 2 */
}
}else{
/* mimeout_mode == 'B', 1, 2 */
- if ( c<=DEL && (output_mode==ASCII ||output_mode == ISO_8859_1)) {
+ if (c <= DEL && (output_mode==ASCII || output_mode == ISO_8859_1 ||
+ output_mode == UTF_8)) {
if (lastchar == CR || lastchar == LF){
if (nkf_isblank(c)) {
for (i=0;i<mimeout_state.count;i++) {
if (lastchar == CR || lastchar == LF){
if (nkf_isblank(c)) {
for (i=0;i<mimeout_state.count;i++) {