Home GnuPG

Unescape sequences in .cow files which look like escaped sequences
dad3ab8d7e87Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Unescape sequences in .cow files which look like escaped sequences

Summary:
Cowsay's .cow files are perl scripts which contain escaped character sequences. This results in an excess of backslashes in the rendered cow. This change replaces occurrences of \x with just x.

This change also introduces conditional unescaping based on whether the cowfile is an original perl-script cowfile or a plain ascii-art file.

Refs T9471

Test Plan:
Use cowsay in a comment and verify that the rendered cow displays appropriately.
Use cowsay with the "dragon" cow and verify that the rendered dragon displays appropriately (contains \@ sequence).

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Maniphest Tasks: T9471

Differential Revision: https://secure.phabricator.com/D14170

Details

Provenance
Christopher Speck <die.drachen@gmail.com>Authored on Sep 26 2015, 6:10 AM
epriestley <git@epriestley.com>Committed on Sep 26 2015, 6:10 AM
Parents
rPHUTILc72eb747e706: Fix an issue with PhutilConsoleTable alignment
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUTILdad3ab8d7e87: Unescape sequences in .cow files which look like escaped sequences (authored by Christopher Speck <die.drachen@gmail.com>).Sep 26 2015, 6:10 AM