Changeset 6e8fc82


Ignore:
Timestamp:
10/30/2006 05:53:07 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
03a18bf
Parents:
a96109a
Message:

Fixed menuconfig look on UTF-8 based systems.
Thanks to Alexander E. Patrakov for the patch.

Location:
menu
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • menu/Makefile

    ra96109a r6e8fc82  
    5454endif
    5555endif
     56endif
     57
     58ifeq (/usr/include/locale.h, $(wildcard /usr/include/locale.h))
     59        HOSTNCURSES += -DLOCALE=1
    5660endif
    5761
  • menu/lxdialog/dialog.h

    ra96109a r6e8fc82  
    2626#include <stdlib.h>
    2727#include <string.h>
     28
     29#ifdef LOCALE
     30#include <locale.h>
     31#endif
    2832
    2933#ifdef CURSES_LOC
  • menu/lxdialog/util.c

    ra96109a r6e8fc82  
    145145init_dialog (void)
    146146{
     147#ifdef LOCALE
     148    setlocale(LC_CTYPE, "");    /* required by ncurses on linux UTF-8 console */
     149#endif
    147150    initscr ();                 /* Init curses */
    148151    keypad (stdscr, TRUE);
Note: See TracChangeset for help on using the changeset viewer.