Changeset 1860


Ignore:
Timestamp:
23/09/2007 19:54:08 (4 years ago)
Author:
chris
Message:

Set the locale from the environment, so that international characters
may be entered when using editline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupquery/bbackupquery.cpp

    r1789 r1860  
    304304         
    305305        // Get commands from input 
     306 
    306307#ifdef HAVE_LIBREADLINE 
     308        // Must initialise the locale before using editline's readline(), 
     309        // otherwise cannot enter international characters. 
     310        if (setlocale(LC_ALL, "") == NULL) 
     311        { 
     312                BOX_ERROR("Failed to initialise locale. International " 
     313                        "character support may not work."); 
     314        } 
     315 
    307316#ifdef HAVE_READLINE_HISTORY 
    308317        using_history(); 
Note: See TracChangeset for help on using the changeset viewer.