Implement UTF-8-clean window titles

This commit is contained in:
Michael Stapelberg
2009-03-08 00:49:11 +01:00
parent 4dd1a7e181
commit 6f630a3335
6 changed files with 58 additions and 11 deletions

View File

@ -17,6 +17,7 @@
#include <stdbool.h>
#include <assert.h>
#include <limits.h>
#include <locale.h>
#include <X11/XKBlib.h>
#include <X11/extensions/XKB.h>
@ -308,6 +309,8 @@ int main(int argc, char *argv[], char *env[]) {
xcb_window_t root;
xcb_intern_atom_cookie_t atom_cookies[NUM_ATOMS];
setlocale(LC_ALL, "");
/* Disable output buffering to make redirects in .xsession actually useful for debugging */
if (!isatty(fileno(stdout)))
setbuf(stdout, NULL);