<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Oh, you're right! I just realized that he was using cmd.exe,
while I was using a Msys2 shell. That explains the difference:
cmd.exe keeps the quotations for echo, but the Msys2 shell strips
it away.</p>
<p>Christof<br>
</p>
<div class="moz-cite-prefix">On 17.03.2021 22:10, José de Abreu
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPy0DuqNm97vxnYK3uwgTPUE5JAMpWV9EDh3zbU-ZrtvZjvV3A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">he gets 01 because the full symbol is "01
<div dir="auto"><br>
</div>
<div dir="auto">and the last symbol is actually 05.txt"</div>
<div dir="auto"><br>
</div>
<div dir="auto">strange, why echo is sending " ... (!?)</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em Qua, 17 de mar de 2021
12:33, oliver <<a href="mailto:oliver@klingt.org"
target="_blank" rel="noreferrer" moz-do-not-send="true">oliver@klingt.org</a>>
escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">On
2021-03-17 14:25, Christof Ressi wrote:<br>
> pdsend/pdreceive uses the FUDI protocol (= Pd messages),
where strings<br>
> that look like floats are converted to a float atom. When
serializing<br>
> between FUDI strings and Pd atoms, the textual result is
not<br>
> guaranteed to be the same for number atoms.<br>
<br>
i see<br>
<br>
> <br>
>> the resulting output from [netreceive -u 3001] will
be:<br>
>> <br>
>> udp: "01 2 3 4 05.txt"<br>
> Are you sure? Because I get<br>
> <br>
> 1 2 3 4 05.txt<br>
<br>
yes, i am sure, at least for my system (Win7 / PD 0.51.4).<br>
see attached .jpg.<br>
(i'm getting the same truncations without the quotes btw.)<br>
<br>
> <br>
> which is what I would expect. The float atoms are
properly serialized<br>
> to their string representation (Pd doesn't remember the
original<br>
> text!) and "05.txt" is actually a symbol.<br>
> <br>
>> is there any way to sent such a symbol untruncated
using the methods<br>
>> above,<br>
> If you want to send it as a single symbol, that's
possible, you just<br>
> have to escape the whitespace:<br>
> <br>
> "01\ 02\ 0003\ 004\ 05.txt"<br>
<br>
thank you very much, that was a pointer in the right direction
!<br>
i figured, since the white spaces by themselves where
transmitted <br>
correctly, i wouldn't have to worry about them, but literally
escaping <br>
white spaces within my .tcl script (by forcing a backslash
before every <br>
white space) seems to do the trick !<br>
<br>
best<br>
<br>
oliver<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" rel="noreferrer
noreferrer" target="_blank" moz-do-not-send="true">Pd-list@lists.iem.at</a>
mailing list<br>
UNSUBSCRIBE and account-management -> <a
href="https://lists.puredata.info/listinfo/pd-list"
rel="noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
</body>
</html>