OSDN Git Service
(root)
/
lha
/
lha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54aee63
)
Fix nesting of MULTIBYTE_FILENAME compiler switch
author
Yohei Endo
<yoheie@gmail.com>
Sat, 17 Oct 2015 23:40:37 +0000
(08:40 +0900)
committer
Yohei Endo
<yoheie@gmail.com>
Sat, 17 Oct 2015 23:40:37 +0000
(08:40 +0900)
src/header.c
patch
|
blob
|
history
diff --git
a/src/header.c
b/src/header.c
index
0993b49
..
17f4b6d
100644
(file)
--- a/
src/header.c
+++ b/
src/header.c
@@
-278,6
+278,7
@@
convert_filename(name, len, size,
to_code_save = CODE_CAP;
to_code = CODE_SJIS;
}
+#endif
/* special case: if `name' has small lettter, not convert case. */
if (from_code == CODE_SJIS && case_to == TO_LOWER) {
@@
-294,6
+295,7
@@
convert_filename(name, len, size,
}
}
+#ifdef MULTIBYTE_FILENAME
if (from_code == CODE_SJIS && to_code == CODE_UTF8) {
for (i = 0; i < len; i++) {
if (SJIS_FIRST_P(name[i]) && SJIS_SECOND_P(name[i+1]))