Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
stop ignoring utf8 characters in repl-basic. fix JuliaLang#4224
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Sep 10, 2013
1 parent 96bf9e2 commit a2f3c26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/repl-basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ static void basic_stdin_callback(void)
jl_input_line_callback(stdin_buf);
}

void jl_readBuffer(char* base, ssize_t nread)
void jl_readBuffer(unsigned char* base, ssize_t nread)
{
char *start = base;
unsigned char *start = base;
int esc = 0;
int newline = 0;
while (*start != 0 && nread > 0) {
Expand Down
4 changes: 2 additions & 2 deletions ui/repl-readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,9 +791,9 @@ void repl_callback_enable(char *prompt)

#include "uv.h"

void jl_readBuffer(char *base, ssize_t nread)
void jl_readBuffer(unsigned char *base, ssize_t nread)
{
char *start = base;
unsigned char *start = base;
while(*start != 0 && nread > 0) {
rl_stuff_char(*start);
start++;
Expand Down
2 changes: 1 addition & 1 deletion ui/repl.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extern int ends_with_semicolon(const char *input);
extern char *ios_readline(ios_t *s);
DLLEXPORT extern void repl_callback_enable(char *prompt);
DLLEXPORT extern void jl_stdin_callback();
DLLEXPORT extern void jl_readBuffer(char *base, ssize_t nread);
DLLEXPORT extern void jl_readBuffer(unsigned char *base, ssize_t nread);
DLLEXPORT extern void jl_clear_input(void);

#endif // JL_REPL_H

0 comments on commit a2f3c26

Please sign in to comment.