Changeset 4142 for libcaca/trunk


Ignore:
Timestamp:
Dec 18, 2009, 12:25:46 AM (10 years ago)
Author:
Sam Hocevar
Message:

Call setlocale() in the X11 driver to activate the current locale. If it
is an UTF-8 locale, more glyphs are displayed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/x11.c

    r4141 r4142  
    3232#include <stdlib.h>
    3333#include <string.h>
     34#if defined HAVE_LOCALE_H
     35#   include <locale.h>
     36#endif
    3437
    3538#include "caca.h"
     
    105108    height = caca_get_canvas_height(dp->cv);
    106109    dp->resize.allow = 0;
     110
     111#if defined HAVE_LOCALE_H
     112    setlocale(LC_ALL, "");
     113#endif
    107114
    108115    dp->drv.p->dpy = XOpenDisplay(NULL);
Note: See TracChangeset for help on using the changeset viewer.