<div dir="ltr"><div>Hello<br><br>My mistake, the good way I think is %q, not %b, is it correct or not ?<br><br></div>Thanks in advance<br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/8 Stephan Bergmann <span dir="ltr"><<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03/08/2013 05:32 AM, Fridrich Strba (via Code Review) wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you for your patch!  It has been merged to LibreOffice.<br>
<br>
If you are interested in details, please visit<br>
<br>
     <a href="https://gerrit.libreoffice.org/2588" target="_blank">https://gerrit.libreoffice.<u></u>org/2588</a><br>
<br>
Approvals:<br>
   Fridrich Strba: Verified; Looks good to me, approved<br>
</blockquote>
<br></div>
But how does<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
diff --git a/shell/source/unix/misc/<u></u>senddoc.sh b/shell/source/unix/misc/<u></u>senddoc.sh<br>
index 0ff1594..a2c53fd 100644<br>
--- a/shell/source/unix/misc/<u></u>senddoc.sh<br>
+++ b/shell/source/unix/misc/<u></u>senddoc.sh<br>
@@ -18,6 +18,7 @@<br>
 #<br>
<br>
 URI_ENCODE="`dirname $0`/uri-encode"<br>
+URI_ENCODE=$(printf "%b" "$(URI_ENCODE)")<br>
 FOPTS=""<br>
 sd_platform=`uname -s`<br>
<br>
</blockquote>
<br></div>
fix <<a href="https://bugs.freedesktop.org/show_bug.cgi?id=60701" target="_blank">https://bugs.freedesktop.org/<u></u>show_bug.cgi?id=60701</a>> "Send Document as email fails, when application is installed to a directory with a space" in any way?<br>


<br>
The solution should be to properly quote the argument to dirname,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
URI_ENCODE=`dirname "$0"`/uri-encode<br>
</blockquote>
<br>
What the printf '%b' does is break things if the path to LO contains character sequences like "\n".<br>
<br>
Stephan<br>
______________________________<u></u>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.<u></u>org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/libreoffice</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Arnaud Versini</div></div>