sh: Add \u/\U support (in $'...') for UTF-8.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 3 Jul 2011 07:44:12 +0000 (21:44 -1000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 21 Aug 2011 20:49:04 +0000 (13:49 -0700)
commit145a4981faa6931742195464d71b1d2ba1b29522
tree58c49dbe8394a0274597c9b10e7d4011e15f7fdd
parent653b82f9aaadaa4fc961f086038ebd6cef38f28e
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
bin/sh/main.c
bin/sh/parser.c
bin/sh/sh.1
bin/sh/var.c
bin/sh/var.h
tools/regression/bin/sh/parser/dollar-quote10.0 [new file with mode: 0644]
tools/regression/bin/sh/parser/dollar-quote11.0 [new file with mode: 0644]