diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:58 +0000 |
commit | 54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab (patch) | |
tree | 1d8aa5f85a9450353ec3fdaaa5100f60c2d6478e /lib/encodings.c | |
parent | Adding debian version 2.12.0-4. (diff) | |
download | man-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.tar.xz man-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.zip |
Merging upstream version 2.12.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/encodings.c')
-rw-r--r-- | lib/encodings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/encodings.c b/lib/encodings.c index 68c06c6..dbec49d 100644 --- a/lib/encodings.c +++ b/lib/encodings.c @@ -748,9 +748,9 @@ const char * ATTRIBUTE_PURE get_output_encoding (const char *device) /* Return the value of LESSCHARSET appropriate for this locale. */ const char * ATTRIBUTE_PURE get_less_charset (const char *charset_from_locale) { - const struct less_charset_entry *entry; - if (charset_from_locale) { + const struct less_charset_entry *entry; + for (entry = less_charset_table; entry->charset_from_locale; ++entry) if (STREQ (entry->charset_from_locale, @@ -766,9 +766,9 @@ const char * ATTRIBUTE_PURE get_less_charset (const char *charset_from_locale) */ const char * ATTRIBUTE_PURE get_jless_charset (const char *charset_from_locale) { - const struct less_charset_entry *entry; - if (charset_from_locale) { + const struct less_charset_entry *entry; + for (entry = less_charset_table; entry->charset_from_locale; ++entry) if (STREQ (entry->charset_from_locale, |