From: Erik Faye-Lund Date: Mon, 11 Feb 2013 23:13:48 +0000 (+0100) Subject: parse-options: report uncorrupted multi-byte options X-Git-Tag: v1.8.1.5~5^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b141a47801d6fb2d68ec48adfe7597ec3ce49c0d?hp=b141a47801d6fb2d68ec48adfe7597ec3ce49c0d parse-options: report uncorrupted multi-byte options Because our command-line parser considers only one byte at the time for short-options, we incorrectly report only the first byte when multi-byte input was provided. This makes user-errors slightly awkward to diagnose for instance under UTF-8 locale and non-English keyboard layouts. Report the whole argument-string when a non-ASCII short-option is detected. Signed-off-by: Erik Faye-Lund Improved-by: Jeff King Signed-off-by: Junio C Hamano ---