commit | d80109dd5e960ab007911b73a77161e3e8047798 | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Wed Jul 27 22:15:34 2016 +0200 |
committer | Benno Schulenberg <bensberg@justemail.net> | Fri Aug 05 16:07:55 2016 +0200 |
tree | 9967c3f79f131fa1a1a927837f7892cb750f9247 | |
parent | b305911cbaa6d902c01d8db85a41696c6e4a78fc [diff] |
chars: properly compare strings of different lengths That is: don't run towlower() on the two differing bytes when having reached the end of one of the strings. This fixes https://savannah.gnu.org/bugs/?48700. In the bargain, don't do the conversion to lowercase twice. Furthermore, persist when encountering invalid byte sequences -- until finding bytes that differ.