Re: [PATCH] convert: fix handling of dashless UTF prefix in validate_encoding()

2019-10-05 Thread Junio C Hamano
René Scharfe writes: > Strip "UTF" and an optional dash from the start of 'upper' without > passing a NULL pointer to skip_prefix() in the second call, as it cannot > handle that. Did the original meant to say "skip UTF- from the beginning of upper and store it to stripped, or if that cannot be

[PATCH] convert: fix handling of dashless UTF prefix in validate_encoding()

2019-10-04 Thread René Scharfe
Strip "UTF" and an optional dash from the start of 'upper' without passing a NULL pointer to skip_prefix() in the second call, as it cannot handle that. Signed-off-by: René Scharfe --- convert.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/convert.c b/convert.c ind