Re: Encoding problem

Daniel Stonek <[email protected]> Wed, 24 Feb 2016 18:00:16 -0300
Newsgroups gmane.mail.squirrelmail.internationalization
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5085927070393406378==
Content-Type: multipart/alternative;
	boundary="------------050903030304040400030604"

This is a multi-part message in MIME format.
--------------050903030304040400030604
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable


/On 01/26/2016 01:39 PM, Paul Lesniewski wrote:/
> On 1/26/16, "Andr=C3=A9 Z.D.A."<[email protected]>  wrote:
>>>> Question: it is possible to reply to emails with lithuanian letters
>>>> without
>>>> problems with encoding (with default English language in Display
>>>> Options)?
>>> Please try the patch found here:
>>> http://sourceforge.net/p/squirrelmail/bugs/2806
>>>
>> Where exactly is the patch? I have read it, but I'm not sure which pat=
ch
>> should be used.
> For 1.4.22, use quoted_printable_fix-1.4.x-version_2.diff
> If you're using 1.4.23, use quoted_printable_fix-1.4.x-version_3.diff
> For 1.5.2, use quoted_printable_fix-1.5.2-version_3.diff
>
> The latter two are posted near the very end of the thread
>
Hello Paul,

I tried to apply this patch
/For 1.4.22, use quoted_printable_fix-1.4.x-version_2.diff//
/uploaded to the public main SM directory/

# *patch -p1 < quoted_printable_fix-1.4.x-version_2.diff *
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: functions/i18n.php
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
|--- functions/i18n.php    (revision 14363)
|+++ functions/i18n.php    (working copy)
--------------------------
File to patch: ^C

/Then I tried with
/*#  patch -p0 < quoted_printable_fix-1.4.x-version_2.diff
*patching file functions/i18n.php
Hunk #2 FAILED at 186.
1 out of 2 hunks FAILED -- saving rejects to file functions/i18n.php.rej
patching file functions/strings.php
Hunk #1 FAILED at 1489.
Hunk #2 FAILED at 1500.
Hunk #3 FAILED at 1508.
3 out of 3 hunks FAILED -- saving rejects to file functions/strings.php.r=
ej

./rej file content:

--- i18n.php    (working copy)
+++ i18n.php    (revision 14363)
@@ -184,7 +182,7 @@
      }

      /* All HTML special characters are 7 bit and can be replaced first =
*/
-    if (! $save_html) $string =3D sm_encode_html_special_chars($string,=20
ENT_COMPAT, $charset);
+    if (! $save_html) $string =3D sm_encode_html_special_chars ($string)=
;
      $charset =3D strtolower($charset);

      set_my_charset();

Thank you/
/

--------------050903030304040400030604
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty=
pe">
  </head>
  <body text=3D"#000099" bgcolor=3D"#FFFFFF">
    <br>
    <div class=3D"moz-cite-prefix"><i>On 01/26/2016 01:39 PM, Paul
        Lesniewski wrote:</i><br>
    </div>
    <blockquote
cite=3D"mid:[email protected]=
l.com"
      type=3D"cite">
      <pre wrap=3D"">On 1/26/16, "Andr=C3=A9 Z.D.A." <a class=3D"moz-txt-=
link-rfc2396E" href=3D"mailto:[email protected]">&lt;andrezda10@yande=
x.com&gt;</a> wrote:
</pre>
      <blockquote type=3D"cite">
        <blockquote type=3D"cite">
          <blockquote type=3D"cite">
            <pre wrap=3D"">Question: it is possible to reply to emails wi=
th lithuanian letters
without
problems with encoding (with default English language in Display
Options)?
</pre>
          </blockquote>
          <pre wrap=3D"">
Please try the patch found here:
<a class=3D"moz-txt-link-freetext" href=3D"http://sourceforge.net/p/squir=
relmail/bugs/2806">http://sourceforge.net/p/squirrelmail/bugs/2806</a>

</pre>
        </blockquote>
        <pre wrap=3D"">Where exactly is the patch? I have read it, but I'=
m not sure which patch
should be used.
</pre>
      </blockquote>
      <pre wrap=3D"">For 1.4.22, use quoted_printable_fix-1.4.x-version_2=
.diff
If you're using 1.4.23, use quoted_printable_fix-1.4.x-version_3.diff
For 1.5.2, use quoted_printable_fix-1.5.2-version_3.diff

The latter two are posted near the very end of the thread

</pre>
    </blockquote>
    <font face=3D"Arial">Hello Paul,<br>
      <br>
      I tried to apply this patch</font><br>
    <i>For 1.4.22, use quoted_printable_fix-1.4.x-version_2.diff</i><i><b=
r>
    </i>uploaded to the public main SM directory<i><br>
      <br>
      #=C2=A0<b> patch -p1 &lt; quoted_printable_fix-1.4.x-version_2.diff=
 </b><br>
      can't find file to patch at input line 5<br>
      Perhaps you used the wrong -p or --strip option?<br>
      The text leading up to this was:<br>
      --------------------------<br>
      |Index: functions/i18n.php<br>
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
      |--- functions/i18n.php=C2=A0=C2=A0=C2=A0 (revision 14363)<br>
      |+++ functions/i18n.php=C2=A0=C2=A0=C2=A0 (working copy)<br>
      --------------------------<br>
      File to patch: ^C<br>
      <br>
    </i>Then I tried with<br>
    <i><b>#=C2=A0 patch -p0 &lt; quoted_printable_fix-1.4.x-version_2.dif=
f<br>
      </b>patching file functions/i18n.php<br>
      Hunk #2 FAILED at 186.<br>
      1 out of 2 hunks FAILED -- saving rejects to file
      functions/i18n.php.rej<br>
      patching file functions/strings.php<br>
      Hunk #1 FAILED at 1489.<br>
      Hunk #2 FAILED at 1500.<br>
      Hunk #3 FAILED at 1508.<br>
      3 out of 3 hunks FAILED -- saving rejects to file
      functions/strings.php.rej<br>
      <br>
      .</i>rej file content: <br>
    <br>
    <small>--- i18n.php=C2=A0=C2=A0=C2=A0 (working copy)<br>
      +++ i18n.php=C2=A0=C2=A0=C2=A0 (revision 14363)<br>
      @@ -184,7 +182,7 @@<br>
      =C2=A0=C2=A0=C2=A0=C2=A0 }<br>
      =C2=A0<br>
      =C2=A0=C2=A0=C2=A0=C2=A0 /* All HTML special characters are 7 bit a=
nd can be replaced
      first */<br>
      -=C2=A0=C2=A0=C2=A0 if (! $save_html) $string =3D
      sm_encode_html_special_chars($string, ENT_COMPAT, $charset);<br>
      +=C2=A0=C2=A0=C2=A0 if (! $save_html) $string =3D sm_encode_html_sp=
ecial_chars
      ($string);<br>
      =C2=A0=C2=A0=C2=A0=C2=A0 $charset =3D strtolower($charset);<br>
      =C2=A0<br>
      =C2=A0=C2=A0=C2=A0=C2=A0 set_my_charset();</small><br>
    <br>
    Thank you<i><br>
    </i>
  </body>
</html>

--------------050903030304040400030604--


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

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
--===============5085927070393406378==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
Information about translations: http://squirrelmail.org/wiki/LanguageTranslation
Statistics for translations: http://l10n-stats.squirrelmail.org/
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n
--===============5085927070393406378==--