From: tskd08@gmail.com
To: linux-media@vger.kernel.org
Cc: m.chehab@samsung.com, Akihiro Tsukada <tskd08@gmail.com>
Subject: [PATCH] v4l-utils/contrib/gconv: fix wrong conversion to ARIB-STD-B24
Date: Tue, 30 Jun 2015 23:34:00 +0900 [thread overview]
Message-ID: <1435674840-27470-1-git-send-email-tskd08@gmail.com> (raw)
From: Akihiro Tsukada <tskd08@gmail.com>
Some symbol characters were not encoded correctly, though decoding was OK.
Since v4l-utils/libdvbv5 does not use encoding into ARIB-STD-B24,
the bug should not affect libdvbv5,
but this fix supports some other applications.
Signed-off-by: Akihiro Tsukada <tskd08@gmail.com>
---
contrib/gconv/arib-std-b24.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/contrib/gconv/arib-std-b24.c b/contrib/gconv/arib-std-b24.c
index fa3ced4..b9d7588 100644
--- a/contrib/gconv/arib-std-b24.c
+++ b/contrib/gconv/arib-std-b24.c
@@ -1555,15 +1555,12 @@ find_extsym_idx (uint32_t ch)
goto next; \
} \
\
- /* prefer KANJI(>= 0x7521) or EXTRA_SYMBOLS over JISX0213_{1,2} */ \
+ /* KANJI shares some chars with EXTRA_SYMBOLS, but prefer extra symbols*/ \
r = find_extsym_idx (ch); \
if (r >= 0) \
{ \
ch = ucs4_to_extsym[r][1]; \
- if ((ch & 0xff00) >= 0x7a00) \
- r = out_kanji (&st, ch, &outptr, outend); \
- else \
- r = out_extsym (&st, ch, &outptr, outend); \
+ r = out_extsym (&st, ch, &outptr, outend); \
goto next; \
} \
\
--
2.4.4
reply other threads:[~2015-06-30 14:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435674840-27470-1-git-send-email-tskd08@gmail.com \
--to=tskd08@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.