Ticket #65 (closed bug: fixed)

Opened 13 years ago

Last modified 13 years ago

load_bytecode only accepts ascii filenames

Reported by: pmichaud Owned by:
Priority: normal Milestone:
Component: none Version:
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:


Here's the test case:

$ cat x1.pir
.sub 'load' :load
    say 'hello from x1.pir'

$ cat x2.pir
.sub 'main'
    $S0 = iso-8859-1:"x1.pir"
    load_bytecode $S0

$ ./parrot x2.pir
Cross-charset index not supported
current instr.: 'main' pc 3 (x2.pir:3)

The exception comes from ascii_cs_rindex, which doesn't like searching for a trailing '/' in a non-ascii string.


Change History

Changed 13 years ago by NotFound

I've made a quick fix in r35974, replacing the CONST_STRING used for the checks with a string_make using the charset of the string to be checked. This must be reworked when the string reworking is ready.

Changed 13 years ago by pmichaud

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.