petdance/scratch — Issue #335: PIR heredocs and encodings
Author: petdance
Created: 2011-11-01 04:25:43+00:00
State: open

Currently, there is no way to specify the encoding of a heredoc in PIR. Every heredoc is converted to a string in the default ASCII encoding, but 8-bit chars a silently accepted. There are two tests that rely on that behavior:

{{{
t/compilers/imcc/syn/objects.t
t/library/mime_base64.t
}}}

It should be possible to create a heredoc with an encoding like this:

{{{
$S0 = <