|
From: | Paul Eggert |
Subject: | Re: commit-msg hook |
Date: | Mon, 13 Apr 2015 14:19:51 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 04/13/2015 01:18 PM, Eli Zaretskii wrote:
Gawk has the --characters-as-bytes option since v4.0.0, which should countermand that, I think.
Sure, although the code should work even plain POSIX awk, as there should be no need to assume such a GNU extension when bootstrapping. That is, the script could support either:
1. POSIX awk with multibyte OS support, with proper UTF-8 checking from OS libraries; or
2. GNU awk 4 (2012) or later, with nearly-as-good UTF-8 checking hand-coded into the script; or
3. Traditional awk without UTF-8 checking.Currently the script supports (1) and (3) but someone could add support for (2).
[Prev in Thread] | Current Thread | [Next in Thread] |