Re: Porting MailDrop to Alpine

Bengt Thuree <[email protected]> Wed, 21 Jun 2023 03:52:13 +1000
Newsgroups gmane.mail.maildrop
Message-ID <CAB8vGXZGL=0wk7frRmCjPqwcWfLW2rpeoz_Vhq5xsYdQkHYOEA@mail.gmail.com>
--===============4423833919919328446==
Content-Type: multipart/alternative; boundary="00000000000051770405fe93501f"

--00000000000051770405fe93501f
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Sam,
And thank you very much for your reply and explanation. Much appreciated.
I will dig a bit deeper and try to figure out what is happening here.
My C is a bit rusty though, but good time to refresh it.

Any suggestions on an area to look more into?

Cheers
Bengt

On Tue, Jun 20, 2023 at 8:55=E2=80=AFPM Sam Varshavchik <mrsam@courier-mta.=
com>
wrote:

> Bengt Thuree writes:
>
> >
> And when I try the unicodetest by itself, sure enough, that error message=
 pop
>
> > ped up.
> > I added some extra printouts, and I got the following output
> >
> > $ ./unicodetest
> > 1cb.cnt: 0
> > cb.ptr:
> > checkflag: 0
> > 2cb.cnt: 0
> > cb.ptr:
> > checkflag: 0
> > 3cb.cnt: 0
> > cb.ptr:
> > checkflag: 0
> > 4cb.cnt: 4
> > cb.ptr: A**B
> > checkflag: 0
> > Unexpected result from convert()
> > 5cb.cnt: 4
> > cb.ptr: A**B
> > checkflag: 0
>
> > I also started an ubuntu server in a virtual box, and on this server,
> > the make check command works like a charm.
> > So there are some differences between Alpine and Ubuntu here,
> > but I'm not sure where I should start.
> > locale -a gives the same (C, and C.UTF-8, but ubuntu also has POSIX)
> > I tried with bash (instead of default ash), but no difference
> > Would anyone have any thoughts, or suggestions on this issue?
>
> This test checks what happens when text cannot be converted to a
> different
> character set. The expected result is that the non-convertible text gets
> skipped. Your output shows that, instead, non-convertible characters get
> replaced by asterisk characters.
>
> That's all that can be determined, based on the above. courier-unicode
> does
> need to know when text cannot be properly converted from one encoding to
> another. Pretending that everything is cool, and just replacing the non-
> convertible characters with placeholder characters, is not cool.
>
> Some further investigation would be needed to understand the difference
> in
> behavior, and figure out the solution.
> _______________________________________________
> Courier-maildrop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop
>

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

<div dir=3D"ltr"><div>Hi Sam, <br></div><div>And thank you very much for yo=
ur reply and explanation. Much appreciated.</div><div>I will dig a bit deep=
er and try to figure out what is happening here.</div><div>My C is a bit ru=
sty though, but good time to refresh it.</div><div><br></div><div>Any sugge=
stions on an area to look more into?</div><div><br></div><div>Cheers</div><=
div>Bengt<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">On Tue, Jun 20, 2023 at 8:55=E2=80=AFPM Sam Varshavchik =
&lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Bengt Thu=
ree writes:<br>
<br>
&gt; And=C2=A0when=C2=A0I=C2=A0try=C2=A0the=C2=A0unicodetest=C2=A0by=C2=A0i=
tself,=C2=A0sure=C2=A0enough,=C2=A0that=C2=A0error=C2=A0message=C2=A0pop <b=
r>
&gt; ped=C2=A0up.<br>
&gt; I=C2=A0added=C2=A0some=C2=A0extra=C2=A0printouts,=C2=A0and=C2=A0I=C2=
=A0got=C2=A0the=C2=A0following=C2=A0output<br>
&gt;<br>
&gt; $=C2=A0./unicodetest<br>
&gt; 1cb.cnt:=C2=A00<br>
&gt; cb.ptr:<br>
&gt; checkflag:=C2=A00<br>
&gt; 2cb.cnt:=C2=A00<br>
&gt; cb.ptr:<br>
&gt; checkflag:=C2=A00<br>
&gt; 3cb.cnt:=C2=A00<br>
&gt; cb.ptr:<br>
&gt; checkflag:=C2=A00<br>
&gt; 4cb.cnt:=C2=A04<br>
&gt; cb.ptr:=C2=A0A**B<br>
&gt; checkflag:=C2=A00<br>
&gt; Unexpected=C2=A0result=C2=A0from=C2=A0convert()<br>
&gt; 5cb.cnt:=C2=A04<br>
&gt; cb.ptr:=C2=A0A**B<br>
&gt; checkflag:=C2=A00<br>
<br>
&gt; I=C2=A0also=C2=A0started=C2=A0an=C2=A0ubuntu=C2=A0server=C2=A0in=C2=A0=
a=C2=A0virtual=C2=A0box,=C2=A0and=C2=A0on=C2=A0this=C2=A0server,=C2=A0<br>
&gt; the=C2=A0make=C2=A0check=C2=A0command=C2=A0works=C2=A0like=C2=A0a=C2=
=A0charm.<br>
&gt; So=C2=A0there=C2=A0are=C2=A0some=C2=A0differences=C2=A0between=C2=A0Al=
pine=C2=A0and=C2=A0Ubuntu=C2=A0here,=C2=A0<br>
&gt; but=C2=A0I&#39;m=C2=A0not=C2=A0sure=C2=A0where=C2=A0I=C2=A0should=C2=
=A0start.<br>
&gt; locale=C2=A0-a=C2=A0gives=C2=A0the=C2=A0same=C2=A0(C,=C2=A0and=C2=A0C.=
UTF-8,=C2=A0but=C2=A0ubuntu=C2=A0also=C2=A0has=C2=A0POSIX)<br>
&gt; I=C2=A0tried=C2=A0with=C2=A0bash=C2=A0(instead=C2=A0of=C2=A0default=C2=
=A0ash),=C2=A0but=C2=A0no=C2=A0difference<br>
&gt; Would=C2=A0anyone=C2=A0have=C2=A0any=C2=A0thoughts,=C2=A0or=C2=A0sugge=
stions=C2=A0on=C2=A0this=C2=A0issue?<br>
<br>
This test checks what happens when text cannot be converted to a different=
=C2=A0 <br>
character set. The expected result is that the non-convertible text gets=C2=
=A0 <br>
skipped. Your output shows that, instead, non-convertible characters get=C2=
=A0 <br>
replaced by asterisk characters.<br>
<br>
That&#39;s all that can be determined, based on the above. courier-unicode =
does=C2=A0 <br>
need to know when text cannot be properly converted from one encoding to=C2=
=A0 <br>
another. Pretending that everything is cool, and just replacing the non- <b=
r>
convertible characters with placeholder characters, is not cool.<br>
<br>
Some further investigation would be needed to understand the difference in=
=C2=A0 <br>
behavior, and figure out the solution.<br>
_______________________________________________<br>
Courier-maildrop mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/courier-maildrop" r=
el=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/lis=
tinfo/courier-maildrop</a><br>
</blockquote></div>

--00000000000051770405fe93501f--


--===============4423833919919328446==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4423833919919328446==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop

--===============4423833919919328446==--