Re: Determining IO layer set on filehandle

2010-01-29 Thread Aristotle Pagaltzis
); } Considering the relative complexities of the approaches and the fact that conservation of filehandle state is not a concern in your case, I know which solution *I* would favour… Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: use encoding 'utf8' and \x{00e4} notation

2010-02-03 Thread Aristotle Pagaltzis
* Michael Ludwig michael.lud...@xing.com [2010-02-02 17:35]: use encoding 'utf8'; The `encoding` pragma is broken. Do not use it. You want use open ':encoding(UTF-8)', ':std'; Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Character (or byte?) escapes under utf8 pragma

2010-03-06 Thread Aristotle Pagaltzis
it. What's your advice for handling this situation more elegantly? Use the \U escape to indicate that you always mean a Unicode code point. Due to other quirks in how \U is implemented, it ends up not triggering the bug that \x would. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Character (or byte?) escapes under utf8 pragma

2010-04-04 Thread Aristotle Pagaltzis
Hi Michael, I just noticed I never replied to this… * Michael Ludwig michael.lud...@xing.com [2010-03-08 15:50]: Am 07.03.2010 um 07:39 schrieb Aristotle Pagaltzis: Use the \U escape to indicate that you always mean a Unicode code point. Due to other quirks in how \U is implemented, it ends

Re: Use case for utf8::upgrade?

2010-04-07 Thread Aristotle Pagaltzis
they contain the same data. By upgrading your strings, you make sure that you get Unicode semantics consistently. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Use case for utf8::upgrade?

2010-04-07 Thread Aristotle Pagaltzis
, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Use case for utf8::upgrade?

2010-04-08 Thread Aristotle Pagaltzis
that fall outside the Latin-1 charset. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Effect of -C command line switch on `warn` and `die`

2010-04-22 Thread Aristotle Pagaltzis
there will be able to tell you what’s up with this. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Don't use the \C escape in regexes - Why not?

2010-05-04 Thread Aristotle Pagaltzis
is supposed to represent an octet sequence already). Notably absent in both cases: any dependence on the state of the UTF8 flag of the string. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Silence “Wide charact er” warning globally one time

2010-08-02 Thread Aristotle Pagaltzis
) encoding anything. You want `:encoding(UTF-8)`. -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1} Just-another-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org/

Re: Am I correct in thinking that the only way to get ord() to return a value over 256 is to send the character as a Unicode string instead of a byte string?

2010-10-29 Thread Aristotle Pagaltzis
-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org/

Re: Matching upper ASCII characters in RE patterns

2010-12-20 Thread Aristotle Pagaltzis
utf8`. So no there is no replacement for that aspect of the `encoding` pragma coming down the pipe either, now or ever.) Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Choice of BOM for UTF-16 encoding

2014-02-09 Thread Aristotle Pagaltzis
::Unicode`. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: UTF-8 encoding & decoding

2016-05-14 Thread Aristotle Pagaltzis
invalid data then all you get is a false return value and no other help. If you need anything else you pay the memory and take the speed hit of Encode.pm. (If you are working on a large application, chances are high that you have Encode.pm loaded anyway.) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

Re: UTF-8 encoding & decoding

2016-05-06 Thread Aristotle Pagaltzis
wrappers around code ultimately from sv.c. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

Re: Encode UTF-8 optimizations

2016-08-20 Thread Aristotle Pagaltzis
* Karl Williamson [2016-08-21 03:12]: > That should be done anyway to make sure we've got less buggy Unicode > handling code available to older modules. I think you meant “available to older perls”?

Re: select a variable as stdout and utf8 flag behaviour

2016-11-10 Thread Aristotle Pagaltzis
hat “perl knows what I put in there so it should know to set the UTF8 flag on it” not apply to this? Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>