Re: pmap: German umlauts are shown as question marks

"Craig Small" <[email protected]> ("csmall") Wed, 27 Nov 2024 18:01:28 +1100
Newsgroups gmane.linux.procps.devel
Message-ID <CALy8Cw59wGXVc=Rsa3T0CsaK_peZurHKhU8YDmC9EXFs4tt4rw@mail.gmail.com>
--00000000000097c0e30627df8961
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, 7 Nov 2024 at 20:08, Dr. Werner Fink <[email protected]> wrote:

> On 2024/11/07 19:50:46 +1100, Craig Small wrote:
> > Should this string be parsed as a wide string and use iswprint() instea=
d?
>
> I also had this idea, this would require mbstowcs(3) or mbsrtowcs(3) to
> convert a multibyte string like UTF-8 to wide chracter type wint_t ...
> this requires some more coding for detecting invalid bytes in a
> multibyte string ... in comparison using mblen(3) seesm to be somewhat
> simpler
>
I see that, ok its now been pushed to the repository. Thanks!

    $ pmap 634900 | head -n 2
    634900:   ./hello_=C3=A4=C3=B6=C3=BC 1000
    0000557a770e2000      8K r---- hello_??????
    $ src/pmap 634900 | head -n 2
    634900:   ./hello_=C3=A4=C3=B6=C3=BC 1000
    0000557a770e2000      8K r---- hello_=C3=A4=C3=B6=C3=BC

--00000000000097c0e30627df8961
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">On Thu, 7 Nov 2024 at 20:08, Dr. Werner F=
ink &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:</di=
v><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">On 2024/11/07 19:50:46 +1100, Craig Small wrote:<br>
&gt; Should this string be parsed as a wide string and use iswprint() inste=
ad?<br>
<br>
I also had this idea, this would require mbstowcs(3) or mbsrtowcs(3) to<br>
convert a multibyte string like UTF-8 to wide chracter type wint_t ...<br>
this requires some more coding for detecting invalid bytes in a<br>
multibyte string ... in comparison using mblen(3) seesm to be somewhat simp=
ler<br></blockquote><div>I see that, ok its now been pushed to the reposito=
ry. Thanks!<br></div></div><div class=3D"gmail_quote"><br></div><div class=
=3D"gmail_quote">=C2=A0 =C2=A0 $ pmap 634900 | head -n 2<br>=C2=A0 =C2=A0 6=
34900: =C2=A0 ./hello_=C3=A4=C3=B6=C3=BC 1000<br>=C2=A0 =C2=A0 0000557a770e=
2000 =C2=A0 =C2=A0 =C2=A08K r---- hello_??????<br>=C2=A0 =C2=A0 $ src/pmap =
634900 | head -n 2<br>=C2=A0 =C2=A0 634900: =C2=A0 ./hello_=C3=A4=C3=B6=C3=
=BC 1000<br>=C2=A0 =C2=A0 0000557a770e2000 =C2=A0 =C2=A0 =C2=A08K r---- hel=
lo_=C3=A4=C3=B6=C3=BC</div><div class=3D"gmail_quote"><br></div></div>

--00000000000097c0e30627df8961--