projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added initially setting artwork identifier
[rocksndiamonds.git]
/
src
/
libgame
/
text.c
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index 36096240203880ba31d6744f0c9bab2d9cc05eb0..eb36ab2285a47c42e0f8394e49a4d7850d419cf2 100644
(file)
--- a/
src/libgame/text.c
+++ b/
src/libgame/text.c
@@
-371,6
+371,15
@@
char *GetTextBufferFromFile(char *filename, int max_lines)
closeFile(file);
+ if (getTextEncoding(buffer) == TEXT_ENCODING_UTF_8)
+ {
+ char *body_latin1 = getLatin1FromUTF8(buffer);
+
+ checked_free(buffer);
+
+ buffer = body_latin1;
+ }
+
return buffer;
}