aboutsummaryrefslogtreecommitdiffstats
path: root/unix/vncviewer
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2009-01-26 13:17:27 +0000
committerPeter Åstrand <astrand@cendio.se>2009-01-26 13:17:27 +0000
commitaa409f161eca629892323b834d458610f5f6c494 (patch)
tree2d8b755da9a4444b5891879a584f2b1f688467da /unix/vncviewer
parent01eb3b2bfaa80779454a254d6c39be00b3dd4b88 (diff)
downloadtigervnc-aa409f161eca629892323b834d458610f5f6c494.tar.gz
tigervnc-aa409f161eca629892323b834d458610f5f6c494.zip
Use GUI codeset for C library as well, since we are displaying strings from it.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3577 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/vncviewer')
-rw-r--r--unix/vncviewer/vncviewer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/vncviewer/vncviewer.cxx b/unix/vncviewer/vncviewer.cxx
index c4fcc5b7..007c425a 100644
--- a/unix/vncviewer/vncviewer.cxx
+++ b/unix/vncviewer/vncviewer.cxx
@@ -277,6 +277,9 @@ int main(int argc, char** argv)
fprintf(stderr,"\n%s\n", aboutText);
bind_textdomain_codeset(PACKAGE_NAME, "iso-8859-1");
+ // Since we are passing strings from strerror/gai_strerror to the
+ // GUI, these must be in GUI codeset as well.
+ bind_textdomain_codeset("libc", "iso-8859-1");
rfb::initStdIOLoggers();
rfb::LogWriter::setLogParams("*:stderr:30");