Bug 15688 - less displays some unicode chars as {
Summary: less displays some unicode chars as {
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-09 15:33 UTC by Yuri Kanivetsky
Modified: 2023-07-09 15:33 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.