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

看板DFBSD_commit作者時間14年前 (2011/08/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1EKPnGZU (DFBSD_commit)