cppman icon indicating copy to clipboard operation
cppman copied to clipboard

pages show python raw bytes

Open csskevin opened this issue 4 months ago • 1 comments

Whenever I open a page, I get the raw bytes displayed in the document:

$ cppman map
Image

I am using

ArchLinux
foot:1.23.1
less 679
vim:9.1.1623
zsh:5.9

with those relevant environment variables:

export TERM="xterm-256color"
export TERM_PROGRAM="foot"

Any ideas?

csskevin avatar Sep 08 '25 19:09 csskevin

For the record: apparently, you see \xe2\x80\x90 where unicode symbol U+2010 HYPHEN is inserted

Image

And in "MEMBER TYPES" section you see byte codes where table frame is drawn with unicode symbols:

Image

@csskevin could you save this text fragment in a text file and run cat thisfragment.txt? Do you see unicode symbols (hyphen and table pseudographics) displayed correctly?

       All member functions of std::map  are  constexpr:  it  is
       possible to create and use std::map objects in the evalu‐
       ation  of  a  constant expression.  However, std::map ob‐
       jects generally cannot be constexpr, because any  dynami‐
       cally  allocated  storage  must  be  released in the same
       evaluation of constant expression.


TEMPLATE PARAMETERS
       This section is incomplete
       Reason: Add descriptions of the template parameters.

MEMBER TYPES
       pointer
              ┌────────────────────┬───────────────────────────┐
              │ Allocator::pointer │  [until C++11]            │
              ├────────────────────┼───────────────────────────┤
              │ std::alloca‐       │  [since C++11]            │
              │ tor_traits<Alloca‐ │                           │
              │ tor>::pointer      │                           │
              └────────────────────┴───────────────────────────┘

FYI, I run https://sw.kovidgoyal.net/kitty/ in screenshots above.

belkka avatar Oct 11 '25 20:10 belkka