commit: reject invalid UTF-8 codepoints
commit28110d4bfc613d875231d3d7788500d876136ffc
authorbrian m. carlson <sandals@crustytoothpaste.net>
Thu, 4 Jul 2013 17:19:43 +0000 (4 17:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jul 2013 04:45:18 +0000 (4 21:45 -0700)
treea67b9e74f1df050de67d2026ec56a03c93709cbd
parent81a199bb1cd483321962a7bfe5db33980bbf0f01
commit: reject invalid UTF-8 codepoints

The commit code already contains code for validating UTF-8, but it does not
check for invalid values, such as guaranteed non-characters and surrogates.  Fix
this by explicitly checking for and rejecting such characters.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
t/t3900-i18n-commit.sh