summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/cruft/cruft-non-free-utf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/cruft/cruft-non-free-utf
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/cruft/cruft-non-free-utf')
-rw-r--r--t/recipes/checks/cruft/cruft-non-free-utf/build-spec/fill-values3
-rw-r--r--t/recipes/checks/cruft/cruft-non-free-utf/build-spec/orig/src/bad.c18
-rw-r--r--t/recipes/checks/cruft/cruft-non-free-utf/eval/desc2
-rw-r--r--t/recipes/checks/cruft/cruft-non-free-utf/eval/hints1
4 files changed, 24 insertions, 0 deletions
diff --git a/t/recipes/checks/cruft/cruft-non-free-utf/build-spec/fill-values b/t/recipes/checks/cruft/cruft-non-free-utf/build-spec/fill-values
new file mode 100644
index 0000000..2f3af48
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-non-free-utf/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: cruft-non-free-utf
+Description: Check for non free utf
diff --git a/t/recipes/checks/cruft/cruft-non-free-utf/build-spec/orig/src/bad.c b/t/recipes/checks/cruft/cruft-non-free-utf/build-spec/orig/src/bad.c
new file mode 100644
index 0000000..753e63a
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-non-free-utf/build-spec/orig/src/bad.c
@@ -0,0 +1,18 @@
+/* ---------------------------------------------------------------------
+
+ Note A.
+ The fall-through switches in UTF-8 reading code save a
+ temp variable, some decrements & conditionals. The switches
+ are equivalent to the following loop:
+ {
+ int tmpBytesToRead = extraBytesToRead+1;
+ do {
+ ch += *source++;
+ --tmpBytesToRead;
+ if (tmpBytesToRead) ch <<= 6;
+ } while (tmpBytesToRead > 0);
+ }
+ In UTF-8 writing code, the switches on "bytesToWrite" are
+ similarly unrolled loops.
+
+ --------------------------------------------------------------------- */
diff --git a/t/recipes/checks/cruft/cruft-non-free-utf/eval/desc b/t/recipes/checks/cruft/cruft-non-free-utf/eval/desc
new file mode 100644
index 0000000..d1fe3bd
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-non-free-utf/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-non-free-utf
+Check: cruft
diff --git a/t/recipes/checks/cruft/cruft-non-free-utf/eval/hints b/t/recipes/checks/cruft/cruft-non-free-utf/eval/hints
new file mode 100644
index 0000000..0df295b
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-non-free-utf/eval/hints
@@ -0,0 +1 @@
+cruft-non-free-utf (source): license-problem-convert-utf-code [src/bad.c]