Groups | Search | Server Info | Login | Register


Groups > perl.pep > #64

Re: behavior change regarding quoted strings

Newsgroups perl.pep
Date 2018-05-16 10:50 +0000
Subject Re: behavior change regarding quoted strings
Message-ID <20180516105040.GA5453@dcvr> (permalink)
References <20180511185213.GA23717@dcvr> <20180515115336.i4oewf3rve2d2dgx@pali>
From e@80x24.org (Eric Wong)

Show all headers | View raw


pali@cpan.org wrote:
> Hi!
> 
> On Friday 11 May 2018 18:52:13 Eric Wong wrote:
> > Hello, I noticed a behavior change somewhere in the Email::MIME
> > stack when header_str_set is passed a string with a single-quote
> > (') character in it.
> 
> So you mean that input header
> 
>     "Quoted N'Ame" <foo@EXAMPLE.com>
> 
> is changed to
> 
>     "Quoted N\'Ame" <foo@EXAMPLE.com>
> 
> right?

Exactly.

> Both
> 
>     "Quoted N'Ame" <foo@EXAMPLE.com>
> 
>     "Quoted N\'Ame" <foo@EXAMPLE.com>
> 
> are syntactically and semantically valid and correct. And represent
> exactly same phrase. Just first one is shorter as an apostrophe
> character is not needed to escape. (But you can).

Ah, good point, I failed to realize that.

> Escaping ' character is done by Email::Address::XS module which
> Email::MIME uses. So it is not Email::MIME (related) code.

And I failed to realize Email::Address::XS was being used in
this case :x  (I mainly support whatever's packaged for Debian stable)

> Ok, I will change Email::Address::XS module to not escape ' character
> when it is not needed.

Thank you; it'll look a bit cleaner in the raw message, at least :>

> If you know more similar problems, please let me know.
> 
> Thanks for report!

Will do, thanks for catching this.  I guess this list covers
everything in Email::*, anyways?

Back to perl.pep | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

behavior change regarding quoted strings e@80x24.org (Eric Wong) - 2018-05-11 18:52 +0000
  Re: behavior change regarding quoted strings pali@cpan.org - 2018-05-15 13:53 +0200
    Re: behavior change regarding quoted strings e@80x24.org (Eric Wong) - 2018-05-16 10:50 +0000
      Re: behavior change regarding quoted strings pali@cpan.org - 2018-05-19 15:27 +0200
        Re: behavior change regarding quoted strings e@80x24.org (Eric Wong) - 2018-05-24 05:28 +0000
          Re: behavior change regarding quoted strings pali@cpan.org - 2018-05-25 15:39 +0200
            Re: behavior change regarding quoted strings pali@cpan.org - 2018-06-14 00:24 +0200

csiph-web