OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82faa30
)
guess_convert_to_system_encodingをJPが定義されている時のみ呼ぶように修正
author
Habu
<habu@users.sourceforge.jp>
Fri, 28 Feb 2014 13:49:54 +0000
(22:49 +0900)
committer
Habu
<habu@users.sourceforge.jp>
Fri, 28 Feb 2014 13:49:54 +0000
(22:49 +0900)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
02f519c
..
13a5991
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-452,7
+452,10
@@
errr my_fgets(FILE *fff, char *buf, huge n)
/* Read a line */
if (fgets(tmp, 1024, fff))
{
+#ifdef JP
guess_convert_to_system_encoding(tmp, sizeof(tmp));
+#endif
+
/* Convert weirdness */
for (s = tmp; *s; s++)
{