Skip to contentSkip to conversation

v4l-utils/contrib/gconv: fix conversion errors on ARIB-STD-B24 strings

PATCH New [email protected] 1 participant 1 message Apr 13, 2024 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l-utils/contrib/gconv: fix conversion errors on ARIB-STD-B24 strings

From: Akihiro Tsukada <[email protected]>

Some ARIB strings in operation requires that
codepoints from the 'extra symbols' charset fallback to 'kanji'. Remove the range check for 'extra symbols' to accept those strings.

---
 contrib/gconv/arib-std-b24.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
contrib/gconv/arib-std-b24.c +4 -2
index 6a2e6292..18f06283 100644
@@ -494,8 +494,10 @@ b24_char_conv (int set, unsigned char c1, unsigned char c2, uint32_t *out)
 
 	    return 1;
 	  }
-	if (set == EXTRA_SYMBOLS_set)
-	  return 0;
+	/* Some ARIB strings somehow require that
+	 * EXTRA_SYMBOLS codepoints fallback to KANJI_set.
+	 * so just fall through here.
+	 */
 
 	/* non-JISX0213 modification. (combining chars) */
 	if (c1 == 0x22 && c2 == 0x7e)
Signature · 1 line
2.44.0