ab35868474
warning and a chance for recovery. This patch sets the handler to copy the character, clear the error and proceed instead of bailing out. To replicate: - unset LANG - Create a file that has ~1000 lines. Put a single bad character - '\344' in it, around 2/3rds of the file down. Save it. - export LANG=en_US.UTF-8 - edit the file. Notice there is no error for input conversion, since nvi reads the file opportunistically. - :w Boom, the file is truncated. Alternatively, you can put that character in the first line of the file, and watch the fireworks. If you like to restore the previous behavior compile with -DERROR_ON_CONVERT XXX: Pullup to 6, 5 etc. |
||
---|---|---|
.. | ||
api.c | ||
args.h | ||
common.h | ||
conv.c | ||
conv.h | ||
cut.c | ||
cut.h | ||
db.c | ||
db.h | ||
db1.c | ||
dbinternal.h | ||
delete.c | ||
dldb.c | ||
exf.c | ||
exf.h | ||
extern.h | ||
gs.c | ||
gs.h | ||
key.c | ||
key.h | ||
log.c | ||
log.h | ||
log4.c | ||
main.c | ||
mark.c | ||
mark.h | ||
mem.h | ||
msg.c | ||
msg.h | ||
multibyte.h | ||
nothread.c | ||
options.awk | ||
options.c | ||
options.h | ||
options_f.c | ||
pthread.c | ||
put.c | ||
recover.c | ||
screen.c | ||
screen.h | ||
search.c | ||
seq.c | ||
seq.h | ||
trace.c | ||
util.c | ||
util.h | ||
util2.c | ||
vi.src | ||
vi_auto.c | ||
vi_auto.h | ||
vi_rec.c |