DragonFly BSD
DragonFly commits List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Aug 2011 16:32:06 -0700 (PDT)

commit 145a4981faa6931742195464d71b1d2ba1b29522
Author: Peter Avalos <pavalos@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]