From 4dbac8f941ff5aeb348de16d2f90f0d9fa0b9b62 Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 24 Aug 2006 10:26:09 +1000 Subject: [PATCH] =?UTF-8?q?Add=20support=20for=20\a=20\f=20\v=20escape=20s?= =?UTF-8?q?equences,=20and=20make=20sup=C3=A5port=20for=20\e=20standards?= =?UTF-8?q?=20compliant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20060824002609-ac50b-a1a9150d096647d9ab4c39d3245b528d7e75cd57.gz --- common.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/common.c b/common.c index b693cad3e..060dbeb61 100644 --- a/common.c +++ b/common.c @@ -843,9 +843,27 @@ wchar_t *unescape( const wchar_t * orig, int unescape_special ) break; } + case L'a': + { + in[out_pos]=L'\a'; + break; + } + + case L'f': + { + in[out_pos]=L'\f'; + break; + } + + case L'v': + { + in[out_pos]=L'\v'; + break; + } + case L'e': { - in[out_pos]=L'\e'; + in[out_pos]=L'\x1b'; break; }