On 31 Mar 2025 at 12:03, Alan Welsh wrote:

Date sent:      Mon, 31 Mar 2025 12:03:22 -0700
From:   Alan Welsh <[email protected]>
To:     "busybox" <[email protected]>
Subject:        busybox less fails to correctly render a .txt file

> The programs cat, less, and micro (text editor) all work to render a certain 
> .txt file I have. But
> busybox less doesn't. It mangles the text. I've tried removing all 
> non-printable characters from the
> text, but the problem remains.
>
> I'm using wayland and sway. And I have tried reading the file while using the 
> terminals alacritty and
> foot.
>
> The first three paragraphs of the text is attached.
>
Two quick things. File has DOS CR/LF new lines. Has a number of
UTF characters in it, so not sure what you used to filter them out?

      1 c3a2       [â]  LATIN SMALL LETTER A WITH CIRCUMFLEX (U+00E2)
      1 c3a9       [é]  LATIN SMALL LETTER E WITH ACUTE (U+00E9)
      7 e28094     [—]  EM DASH (U+2014)
     14 e28099     [’]  RIGHT SINGLE QUOTATION MARK (U+2019)
      5 e2809c     [“]  LEFT DOUBLE QUOTATION MARK (U+201C)
      5 e2809d     [”]  RIGHT DOUBLE QUOTATION MARK (U+201D)

Didn't see any difference.
# less abandon_all_hope.txt >less1
# busybox less abandon_all_hope.txt >less2
# cmp less1 less2

came up with no difference.
3118 Apr  1 09:43 less1
3118 Apr  1 09:44 less2

BusyBox v1.38.0.git (2025-03-29 12:33:07 ChST) multi-call binary.
> Thank you
>
>
>



+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)
 mailto:[email protected]
 mailto:[email protected]
 mailto:[email protected]
 Guam - Where America's Day Begins
 G4L Disk Imaging Project maintainer
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+


_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox

Reply via email to