diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Font.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/FbTk/Font.cc b/src/FbTk/Font.cc index 709c8e4..815cf0d 100644 --- a/src/FbTk/Font.cc +++ b/src/FbTk/Font.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | //$Id: Font.cc,v 1.9 2004/08/10 18:08:37 fluxgen Exp $ | 22 | //$Id: Font.cc,v 1.10 2004/08/14 09:33:09 fluxgen Exp $ |
23 | 23 | ||
24 | 24 | ||
25 | #include "StringUtil.hh" | 25 | #include "StringUtil.hh" |
@@ -226,6 +226,10 @@ Font::Font(const char *name, bool antialias): | |||
226 | else | 226 | else |
227 | m_locale = "UTF-8"; | 227 | m_locale = "UTF-8"; |
228 | } | 228 | } |
229 | |||
230 | if (m_locale.empty()) | ||
231 | m_locale = "C"; | ||
232 | |||
229 | // if locale isn't UTF-8 we try to | 233 | // if locale isn't UTF-8 we try to |
230 | // create a iconv pointer so we can | 234 | // create a iconv pointer so we can |
231 | // convert non utf-8 strings to utf-8 | 235 | // convert non utf-8 strings to utf-8 |