#888: [BUG]parrot make failed with chinese TEMP PATH
--------------------+-------------------------------------------------------
Reporter: jimmy | Owner: jimmy
Type: bug | Status: closed
Priority: normal | Milestone:
Component: none | Version: 1.4.0
Severity: medium | Resolution: fixed
Keywords: | Lang:
Patch: | Platform:
--------------------+-------------------------------------------------------
Changes (by coke):
* status: new => closed
* resolution: => fixed
Comment:
Slightly different fix for the problem (though very close to cotto++'s) in
r47588.
Uses the default string encoding for anything that fits in ASCII; use
binary for anything else -- utf8 is probably not safe, since some of this
data is coming in from ENV and isn't necessarily encoded properly.
{{{
.loadlib 'io_ops'
.sub main :main
.local pmc interp,config
.include 'iglobals.pasm'
interp = getinterp
config = interp[.IGLOBALS_CONFIG_HASH]
$S1 = config['tempdir']
$S1 .= "/blah.txt"
$P1 = open $S1, 'w'
print $P1, "hello world"
close $P1
.end
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/888#comment:9>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets