From 5be7e5b66619e95f0467af284b0ce3cfe16dcfa0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 14 Aug 2004 09:33:09 +0000 Subject: tempfix for empty locale --- src/FbTk/Font.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Font.cc,v 1.9 2004/08/10 18:08:37 fluxgen Exp $ +//$Id: Font.cc,v 1.10 2004/08/14 09:33:09 fluxgen Exp $ #include "StringUtil.hh" @@ -226,6 +226,10 @@ Font::Font(const char *name, bool antialias): else m_locale = "UTF-8"; } + + if (m_locale.empty()) + m_locale = "C"; + // if locale isn't UTF-8 we try to // create a iconv pointer so we can // convert non utf-8 strings to utf-8 -- cgit v0.11.2