Corinna Vinschen
ed18acfe8c
strcasecmp family: cast character to unsigned when calling tolower
...
The strcasecmp family of functions (strcasecmp, strncasecmp,
strcasecmp_l, strncasecmp_l) call tolower on the incoming
character before comparison. tolower takes an int as parameter.
All four strcasecmp functions neglect to cast the character to
unsigned before using it as parameter to tolower. This tolower
is called with negative values if the incoming character is not
in the ASCII range. This breaks case-insensitive comparison in
other singlebyte codesets like ISO-8859-1 with native characters.
Adding casts to unsigned char when calling tolower fixes it.
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2025-02-17 10:52:28 +01:00
..
2018-03-12 10:17:20 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2023-02-20 11:01:18 +01:00
2016-03-18 12:33:40 +01:00
2017-07-05 13:49:48 +02:00
2017-07-05 13:49:48 +02:00
2017-07-05 13:49:48 +02:00
2017-07-05 13:49:48 +02:00
2017-07-05 13:49:48 +02:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2025-02-10 15:35:20 +01:00
2022-03-16 21:18:25 -04:00
2025-02-10 15:26:51 +01:00
2025-02-10 15:20:47 +01:00
2025-02-10 15:20:47 +01:00
2025-02-10 15:30:46 +01:00
2019-08-14 10:39:37 +02:00
2025-02-10 15:31:10 +01:00
2025-02-10 15:30:46 +01:00
2025-02-10 15:20:47 +01:00
2025-02-10 15:20:47 +01:00
2021-07-06 15:35:37 +02:00
2018-03-12 10:17:20 +01:00
2018-03-12 10:17:20 +01:00
2025-02-10 15:20:47 +01:00
2018-01-17 11:47:26 -06:00
2025-02-10 15:20:47 +01:00
2025-02-10 15:20:47 +01:00
2021-09-03 12:51:30 +02:00
2025-02-17 10:52:28 +01:00
2025-02-17 10:52:28 +01:00
2018-01-17 11:47:26 -06:00
2025-02-12 10:25:24 +01:00
2025-02-10 15:20:47 +01:00
2018-01-17 11:47:26 -06:00
2025-02-10 15:20:47 +01:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2025-02-10 15:20:47 +01:00
2023-12-19 23:23:31 -05:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2022-07-13 06:55:41 +02:00
2024-01-22 21:58:58 -05:00
2022-01-05 17:11:47 +01:00
2022-01-05 17:11:47 +01:00
2025-02-10 15:20:47 +01:00
2018-01-17 11:47:26 -06:00
2025-02-17 10:52:28 +01:00
2025-02-17 10:52:28 +01:00
2025-02-11 14:28:33 -05:00
2025-02-10 15:20:47 +01:00
2025-02-10 15:20:47 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2023-12-21 14:04:49 -05:00
2021-10-13 16:39:49 -04:00
2018-01-17 11:47:26 -06:00
2022-07-13 06:55:46 +02:00
2024-01-02 14:11:07 -05:00
2021-09-03 12:51:30 +02:00
2018-01-17 11:47:26 -06:00
2022-07-13 06:55:46 +02:00
2018-01-17 11:47:26 -06:00
2024-01-08 17:01:25 +01:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2016-03-18 12:33:40 +01:00
2016-03-18 12:33:40 +01:00
2018-01-17 11:47:26 -06:00
2021-07-06 15:35:37 +02:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2022-01-05 17:11:47 +01:00
2022-01-05 17:11:47 +01:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2024-01-22 21:58:58 -05:00
2018-01-17 11:47:26 -06:00
2017-12-01 03:41:52 -06:00
2018-01-17 11:47:26 -06:00
2020-02-18 11:35:42 +01:00
2023-02-20 11:01:18 +01:00
2018-03-12 10:17:20 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00