Ticket #1628 (closed experimental: fixed)

Opened 4 years ago

Last modified 4 years ago

Unescape parrot string to parrot string

Reported by: NotFound Owned by: NotFound
Priority: normal Milestone:
Component: core Version: 2.3.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

IMCC does string unescape using the Parrot_str_unescape wich uses a C string as source and mixes source and destination charset and encoding.

A function that does the unescape taking a parrot string as source and explicitly sets the destination charset and encoding will allow cleaner and more generic usages, from imcc and other PIR compilers.

This ticket tracks the experimental status of this addition.

Change History

Changed 4 years ago by NotFound

  • status changed from new to assigned
  • owner set to NotFound

The function Parrot_str_unescape_string has been added, ans is used in imcc with a few special casing for backward compatibility.

Changed 4 years ago by jkeenan

  • component changed from none to core

Changed 4 years ago by nwellnhof

In branch nwellnhof/string_unescape I changed Parrot_str_unescape to call Parrot_str_unescape_string internally and adjusted the IMCC code.

AFAICS, the old unescaping code was only used for encoding:charset:"" type literals which are deprecated now. See TT #1808.

Changed 4 years ago by nwellnhof

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

Removed experimental status of Parrot_str_unescape_string in commit b8b3c7db92.

Note: See TracTickets for help on using tickets.