Skip Menu |
Report information
Id: 130488
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: comdog <brian.d.foy [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Mon, 2 Jan 2017 19:34:13 -0500
To: rakudobug [...] perl.org
From: brian d foy <brian.d.foy [...] gmail.com>
Subject: Trying to output something unrepresentable in the encoding throws X::AdHoc
Download (untitled) / with headers
text/plain 595b
Trying to output a character unrepresentable in the specified encoding throws an X::AdHoc error. I think that should be X::IO, and maybe there's enough issues here that an X::IO::Exception may be interesting enough. my $file = 'encoding_test.txt'; my $path = $*SPEC.catfile( $*SPEC.tmpdir, $file ); spurt $path, '─░stanbul', enc => 'iso-8859-1'; CATCH { put "Caught {.^name}: {.message}"; } Here'e the error: Caught X::AdHoc: Error encoding Latin-1 string: could not encode codepoint 304 Error encoding Latin-1 string: could not encode codepoint 304


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org