git: sh: Add \u/\U support (in $'...') for UTF-8.

Peter Avalos pavalos at crater.dragonflybsd.org
Sun Aug 21 16:33:11 PDT 2011


commit 145a4981faa6931742195464d71b1d2ba1b29522
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date:   Sat Jul 2 21:44:12 2011 -1000

    sh: Add \u/\U support (in $'...') for UTF-8.
    
    Note that \u/\U are processed using the locale that was active when the
    shell started. This is necessary to avoid behaviour that depends on the
    parse/execute split (for example when placing braces around an entire
    script). Therefore, UTF-8 encoding is implemented manually.
    
    Obtained-from:   FreeBSD SVN rev 221669

Summary of changes:
 bin/sh/main.c                                   |    6 ++--
 bin/sh/parser.c                                 |   25 ++++++++++++++++++++++-
 bin/sh/sh.1                                     |    6 ++--
 bin/sh/var.c                                    |    9 +++++++-
 bin/sh/var.h                                    |    5 +++-
 tools/regression/bin/sh/parser/dollar-quote10.0 |   10 +++++++++
 tools/regression/bin/sh/parser/dollar-quote11.0 |    8 +++++++
 7 files changed, 60 insertions(+), 9 deletions(-)
 create mode 100644 tools/regression/bin/sh/parser/dollar-quote10.0
 create mode 100644 tools/regression/bin/sh/parser/dollar-quote11.0

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/145a4981faa6931742195464d71b1d2ba1b29522


-- 
DragonFly BSD source repository





More information about the Commits mailing list