mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-20 00:06:45 -05:00
Insure &asc &chr 128 equals 128.
Insert-string can't handle character code > 0xFF.
This commit is contained in:
parent
7c74bfdc1a
commit
91455a2e5a
2
eval.c
2
eval.c
@ -516,7 +516,7 @@ static char *gtfun( char *fname) {
|
|||||||
retstr = ltos( atoi( argx) == 42) ;
|
retstr = ltos( atoi( argx) == 42) ;
|
||||||
break ;
|
break ;
|
||||||
case UFASCII:
|
case UFASCII:
|
||||||
retstr = i_to_a( (int) argx[ 0]) ;
|
retstr = i_to_a( (int) argx[ 0] & 0xFF) ;
|
||||||
break ;
|
break ;
|
||||||
case UFCHR:
|
case UFCHR:
|
||||||
result[0] = atoi(argx);
|
result[0] = atoi(argx);
|
||||||
|
2
line.c
2
line.c
@ -265,7 +265,7 @@ int linstr( char *instr) {
|
|||||||
|
|
||||||
while( (tmpc = *instr++)) {
|
while( (tmpc = *instr++)) {
|
||||||
status =
|
status =
|
||||||
(tmpc == '\n' ? lnewline() : linsert( 1, tmpc)) ;
|
(tmpc == '\n' ? lnewline() : linsert( 1, tmpc & 0xFF)) ;
|
||||||
|
|
||||||
/* Insertion error? */
|
/* Insertion error? */
|
||||||
if( status != TRUE) {
|
if( status != TRUE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user