diff options
author | simonb <simonb> | 2006-05-07 03:41:27 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-07 03:41:27 (GMT) |
commit | 520f552be79581be50156bb7785e7ef0ce946b07 (patch) | |
tree | 82edcbb794f6b89804a2a7f75e0122afcc074f94 /src/tests | |
parent | 0e9fa988ff41cc32a390f70443669a6df45f3e44 (diff) | |
download | fluxbox_lack-520f552be79581be50156bb7785e7ef0ce946b07.zip fluxbox_lack-520f552be79581be50156bb7785e7ef0ce946b07.tar.bz2 |
handle utf-8 strings properly.
use utf8 internally
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/testFont.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/testFont.cc b/src/tests/testFont.cc index b382594..e5e2377 100644 --- a/src/tests/testFont.cc +++ b/src/tests/testFont.cc | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "EventManager.hh" | 27 | #include "EventManager.hh" |
28 | #include "GContext.hh" | 28 | #include "GContext.hh" |
29 | #include "Color.hh" | 29 | #include "Color.hh" |
30 | #include "FbString.hh" | ||
30 | 31 | ||
31 | #include <X11/Xutil.h> | 32 | #include <X11/Xutil.h> |
32 | #include <X11/keysym.h> | 33 | #include <X11/keysym.h> |
@@ -180,8 +181,10 @@ int main(int argc, char **argv) { | |||
180 | cerr<<"Orientation not valid ("<<orient<<")"<<endl; | 181 | cerr<<"Orientation not valid ("<<orient<<")"<<endl; |
181 | orient = FbTk::ROT0; | 182 | orient = FbTk::ROT0; |
182 | } | 183 | } |
184 | // utf-8 it | ||
185 | |||
183 | cerr<<"Setting text: "<<text<<endl; | 186 | cerr<<"Setting text: "<<text<<endl; |
184 | app.setText(text, orient); | 187 | app.setText(FbTk::FbStringUtil::XStrToFb(text), orient); |
185 | 188 | ||
186 | app.redraw(); | 189 | app.redraw(); |
187 | app.eventLoop(); | 190 | app.eventLoop(); |