<div dir="ltr"><div class="gmail_default" style="font-size:large">Would/Could, LANG/LOCALE affect socket output?</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">* I personally do not touch environment variables - so I am not sure what to ever try. The "client" (Telnet) I have tried Terminal.App, iTerm2, Putty.exe, Telnet.exe, xTerm-256, fTelnet, etc. all clients on all 3 OSes render '?' from the daemon if systemctl starts it, again, if I just start the fpc binary from a shell'd session, ./program - it works fine on all 3 OSes that previously show '?'. I have tcpdump'd the socket, it sends '?' when ran under systemctl, however, sends the 8bit character when ran manually on the command line.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Thanks,</div><div class="gmail_default" style="font-size:large">Ozz<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 29, 2020 at 7:39 AM Marco van de Voort <<a href="mailto:core@pascalprogramming.org">core@pascalprogramming.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><br>
</p>
<div>Op 29/01/2020 om 14:23 schreef Ozz
Nixon via fpc-devel:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:large">I am not sure
how this is occurring, however, my socket daemon on Linux - is
launched by hand ./program is able to send to the socket:</div>
<div class="gmail_default" style="font-size:large"><br>
</div>
<div class="gmail_default" style="font-size:large">Socket.Write(#218+#196+#191);</div>
<div class="gmail_default" style="font-size:large"><br>
</div>
<div class="gmail_default" style="font-size:large">And the
terminal (any) will display the single highbit characters.</div>
<div class="gmail_default" style="font-size:large"><br>
</div>
<div class="gmail_default" style="font-size:large">If systemctl
start myprogram... that same call sends '???'. Same binary,
not recompiled or anything. Then I do systemctl stop
myprogram, and ./program connect to it, and I get the single
highbit characters again.</div>
<div class="gmail_default" style="font-size:large"><br>
</div>
<div class="gmail_default" style="font-size:large">I have
googled everything I could think of for FPC and SYSTEMCTL, to
see if either have documented this - without success. Since
you guys know what the compiler is producing, and all these
tricks you guys do for UTF8, CP437, etc... I decided to give
up and ask you guys - any idea what is going on?</div>
<div class="gmail_default" style="font-size:large"><br>
</div>
<div class="gmail_default" style="font-size:large">* The other
challenge is, this just started a week ago. the
myprogram.service file has not been modified, nothing for the
OS had been modified, I just noticed one day - the code I use
for UTF8 auto detection was showing ???? ... and then ran my
8bit test, and noticed ever character 0x80+ displays as '?'.</div>
</div>
</blockquote>
<p><br>
</p>
<p>LANG or LOCALE environment variables ?<br>
</p>
</div>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div>