From 736f13cb421604cf68f3e078e5bf0b82e0ffbc92 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 9 Dec 2021 11:52:12 +0100 Subject: Introduce and use isalpha_ascii() in debversion rather than isalpha() Avoid misclassifying additional alphabetical characters from certain locales as alpha and then sort them by ASCII... --- apt-pkg/deb/debversion.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg/deb') diff --git a/apt-pkg/deb/debversion.cc b/apt-pkg/deb/debversion.cc index d2ebd2805..005f1bce0 100644 --- a/apt-pkg/deb/debversion.cc +++ b/apt-pkg/deb/debversion.cc @@ -40,7 +40,7 @@ static int order(char c) { if (isdigit(c)) return 0; - else if (isalpha(c)) + else if (isalpha_ascii(c)) return c; else if (c == '~') return -1; -- cgit v1.2.3-70-g09d2