Bug#839593: cme: support (or switch to) UTF-8 encoding
Jonas Smedegaard
dr at jones.dk
Tue Oct 4 09:28:19 UTC 2016
Quoting Dominique Dumont (2016-10-04 10:20:40)
> On Sunday, 2 October 2016 16:18:38 CEST you wrote:
> > Both
> >
> > % cme modify dpkg-control 'source Uploaders:.insort("María Prueba
> > <m at example.org>")'
> >
> > and
> >
> > % perl -MConfig::Model=cme -e 'cme("dpkg-control")->modify("source
> > Uploaders:.insort(\"María Prueba <m\@example.org>\")");'
> >
> > result in a broken 'í', which gets mangled into 'Ã', probably because
> > perl's default encoding is still latin1.
>
> You're right.
>
> According to perlrun(1), you can run also cme this way :
> $ perl -C A -S cme modify dpkg-control '...'
>
> I'll tweak cme upstream to assume that @ARGV is utf8. I'll assume that
> everybody use utf8 (even outside of Debian) until a bug report proves me
> wrong.
>
> There's nothing I can do with the 2nd form you propose. Even with a one-liner,
> you writing a script and you have to inform perl that you are using utf8 in
> the script. I see no other way that the one you found:
>
> > The following works for me:
> >
> > % perl -Mutf8 -MConfig::Model=cme -e 'cme("dpkg-control")->modify("source
> > Uploaders:.insort(\"María Prueba <m\@example.org>\")");'
> >
> > (also with utf8::all but apparently utf8 is enough).
Are you aware of "perldoc perlunicook"?
That documentation helped me get straight which options controlled which
pats of the Unicode maze.
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20161004/98f11825/attachment-0001.sig>
More information about the pkg-perl-maintainers
mailing list