#692: PBC to PIR fallback fails.
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: 1.2.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
{{{
$ which parrot
/usr/local/bin/parrot
$ parrot --version
This is Parrot version 1.2.0 built for i386-linux.
Copyright (C) 2001-2009, Parrot Foundation.
This code is distributed under the terms of the Artistic License 2.0.
For more details, see the full text of the license in the LICENSE file
included in the Parrot source tree.
$ cat foo.pir
.sub main :main
load_bytecode 'Tcl/Glob.pbc'
.end
$ parrot foo.pir
PackFile_unpack: This is not a valid Parrot bytecode file
Parrot VM: Can't unpack packfile
/usr/local/lib/parrot/1.2.0/library/Tcl/Glob.pir.
Unable to append PBC to the current directory
current instr.: 'main' pc 0 (foo.pir:2)
}}}
NotFound++ suggests that it's falling back on the /filename/, but not the
expected content type, and is then trying to load the .pir file as if it
were a .pbc.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/692>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets