Ensure that 'licensecheck' is run with the C.UTF-8 locale
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 11 Jan 2023 14:32:18 +0000 (15:32 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 11 Jan 2023 14:32:18 +0000 (15:32 +0100)
debian/rules

index c4baea0e64274b62d0fde4d6c5b0718a09ffdf80..58b93c6835d612b78521637b052cb519cde7e67d 100755 (executable)
@@ -95,7 +95,7 @@ execute_after_dh_clean:
 
 
 licensecheck:
-       licensecheck -i "^\./($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" --deb-machine -r . \
+       LANG=C.UTF-8 licensecheck -i "^\./($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" --deb-machine -r . \
                > debian/copyright_newhints
        cmp debian/copyright_hints debian/copyright_newhints \
                && rm debian/copyright_newhints
@@ -109,7 +109,7 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
 # licensecheck v1
 .PHONY: licensecheck
 licensecheck:
-       licensecheck \
+       LANG=C.UTF-8 licensecheck \
                -i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \
                --check '.*' --recursive --deb-machine --lines 0 * \
                > debian/copyright_newhints