Bug 15688

Summary: less displays some unicode chars as {
Product: Busybox Reporter: Yuri Kanivetsky <yuri.kanivetsky>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Yuri Kanivetsky 2023-07-09 15:33:36 UTC
Example chars are: U+611B 愛 (e6 84 9b), U+529b 力 (e5 8a 9b). What's common for them is they include 0x9b. As such I think they get replaced here:

https://git.busybox.net/busybox/tree/miscutils/less.c?id=e41e481fd5716fc9b2e2fdf2670d72c727ecb37f#n885

Steps to reproduce:

$ echo '力愛' | less

Expected result: 力愛
Actual result: {{

I ran into it in a docker container (alpine:3.18, busybox-1.36.1), but I don't think it's docker-specific. Because e.g. cat works.