OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ファイルの読み込み時に文字コードを適切なものに変換するように修正
[hengbandforosx/hengbandosx.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index
5ef7f93
..
d67359b
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-452,6
+452,7
@@
errr my_fgets(FILE *fff, char *buf, huge n)
/* Read a line */
if (fgets(tmp, 1024, fff))
{
+ guess_convert_to_system_encoding(tmp, sizeof(tmp));
/* Convert weirdness */
for (s = tmp; *s; s++)
{