mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Set locale in key_reader correctly
darcs-hash:20050925113213-ac50b-1d38653ba028bf64b7baab751facc837137e9bff.gz
This commit is contained in:
parent
4a786cafda
commit
cb1f3eb53d
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <string.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <locale.h>
|
||||
#include <termcap.h>
|
||||
|
||||
#include "input_common.h"
|
||||
|
@ -23,6 +24,9 @@ int writestr( char *str )
|
|||
int main( int argc, char **argv)
|
||||
{
|
||||
|
||||
setlocale( LC_ALL, "" );
|
||||
|
||||
|
||||
if( argc == 2 )
|
||||
{
|
||||
static char term_buffer[2048];
|
||||
|
|
Loading…
Reference in a new issue