NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/44455: vi doesn't handle unprintable characters

>Number:         44455
>Category:       bin
>Synopsis:       vi doesn't handle unprintable characters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 24 22:20:01 +0000 2011
>Originator:     Michael van Elst
>Release:        NetBSD 5.99.44
System: NetBSD dummy 5.99.44 NetBSD 5.99.44 (DUMMY) #0: Mon Jan 24 17:14:20 CET
2011 mlelstv@henery:/home/netbsd-current/obj.amiga/home/netbsd-current/src/sys/a
rch/amiga/compile/DUMMY amiga
Architecture: m68k
Machine: amiga
vi should show nonprintable characters as hexcodes, i.e \xe4 for an a-umlaut,
instead it shows \x00. The characters are inserted correctly, just the
display is bad.

I can repeat this only on big-endian machines (amiga, sparc64) but not on
others (amd64), the problem also exists in netbsd-5.

My guess is that for 8bit locales the first byte of a wchar_t is displayed
instead of the low byte.

Clear LC_* and LANG environment variables and run vi and input non-ascii
characters. vi shows these as \x00.



Home | Main Index | Thread Index | Old Index