Ticket #2040 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

load_ bytecode with a unicode string fails

Reported by: jonathan Owned by: nwellnhof
Priority: normal Milestone:
Component: core Version: 3.1.0
Severity: high Keywords:
Cc: Language:
Patch status: applied Platform: all

Description

If you pass in a unicode string to load_bytecode, it calls parrot_split_path_ext with that string, which in turn tries to use rindex, which ends up in src/string/encoding/shared.c's encoding_rindex...which is not implemented. Not so good.

Change History

Changed 4 years ago by nwellnhof

  • status changed from new to assigned
  • platform changed from win32 to all
  • owner set to nwellnhof

I implemented rindex for Unicode strings in 2a8444840859d8c1c28a. Can you give it a try?

Changed 4 years ago by dukeleto

  • status changed from assigned to closed
  • resolution set to fixed
  • patch set to applied

The tests that were added pass. Closing this ticket.

Note: See TracTickets for help on using tickets.