|
From: Tapio V. <aa...@us...> - 2011-10-25 18:47:00
|
Author: Tapio Vierros <tap...@gm...>
Date: Tue Oct 25 21:46:20 2011 +0300
Added some additional codepages.
---
data/schema.xml | 9 ++++++++-
game/unicode.cc | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/data/schema.xml b/data/schema.xml
index 7d5530a..9f9a621 100644
--- a/data/schema.xml
+++ b/data/schema.xml
@@ -75,10 +75,17 @@ to save the current settings to XML.
<short>Hardware MIDI input device</short>
<long>Part of sound card name or its number or empty to use the first available device. Used currently for MIDI drum controllers.</long>
</entry>
- <entry name="game/fallback_encoding" type="int" value="1">
+ <entry name="game/fallback_encoding" type="int" value="2">
<limits>
<enum>CP1250</enum>
+ <enum>CP1251</enum>
<enum>CP1252</enum>
+ <enum>CP1253</enum>
+ <enum>CP1254</enum>
+ <enum>CP1255</enum>
+ <enum>CP1256</enum>
+ <enum>CP1257</enum>
+ <enum>CP1258</enum>
</limits>
<short>Fallback song encoding</short>
<long>Pick the text codec used for song files that are not UTF-8.</long>
diff --git a/game/unicode.cc b/game/unicode.cc
index 5fe8c4e..0afd382 100644
--- a/game/unicode.cc
+++ b/game/unicode.cc
@@ -9,7 +9,7 @@
namespace {
// Codepage choices from config
- static const char* codesets[] = { "CP1250", "CP1252" };
+ static const char* codesets[] = { "CP1250", "CP1251", "CP1252", "CP1253", "CP1254", "CP1255", "CP1256", "CP1257", "CP1258" };
// Convert a string using Glib, throw exception on error.
// This is in fact (slightly modified) Glib::convert from glibmm.
|