mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-24 11:58:11 +08:00
Set locale in key_reader correctly
darcs-hash:20050925113213-ac50b-1d38653ba028bf64b7baab751facc837137e9bff.gz
This commit is contained in:
parent
4a786cafda
commit
cb1f3eb53d
@ -10,6 +10,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <locale.h>
|
||||||
#include <termcap.h>
|
#include <termcap.h>
|
||||||
|
|
||||||
#include "input_common.h"
|
#include "input_common.h"
|
||||||
@ -23,6 +24,9 @@ int writestr( char *str )
|
|||||||
int main( int argc, char **argv)
|
int main( int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
setlocale( LC_ALL, "" );
|
||||||
|
|
||||||
|
|
||||||
if( argc == 2 )
|
if( argc == 2 )
|
||||||
{
|
{
|
||||||
static char term_buffer[2048];
|
static char term_buffer[2048];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user