[PATCH][dvb-apps] Fix 'scan' utility region 0x14 encoding from BIG5 to UTF-16BE

2013-07-12 Thread Huei-Horng Yo
From: Huei-Horng Yo hiroshi...@gmail.com


Signed-off-by: Huei-Horng Yo hiroshi...@gmail.com
---


scan.patch
Description: Binary data


Re: [PATCH][dvb-apps] Fix 'scan' utility region 0x14 encoding from BIG5 to UTF-16BE

2013-07-12 Thread Huei-Horng Yo

於 西元2013年07月13日 10:44, Huei-Horng Yo 提到:

From: Huei-Horng Yo hiroshi...@gmail.com


Signed-off-by: Huei-Horng Yo hiroshi...@gmail.com
---



Sorry, don't know how to keep tab in GMail and the attachment is encoded 
in MIME form. :(

---
From: Huei-Horng Yo hiroshi...@gmail.com


Signed-off-by: Huei-Horng Yo hiroshi...@gmail.com
---
diff --git a/util/scan/scan.c b/util/scan/scan.c
index 71a20db..98093ee 100644
--- a/util/scan/scan.c
+++ b/util/scan/scan.c
@@ -850,7 +850,7 @@ static void descriptorcpy(char **dest, const 
unsigned char *src, size_t len)

case 0x11:  type = ISO-10646;   break;
case 0x12:  type = ISO-2022-KR; break;
case 0x13:  type = GB2312;  break;
-   case 0x14:  type = BIG5;break;
+   case 0x14:  type = UTF-16BE;break;
case 0x15:  type = ISO-10646/UTF-8; break;
case 0x10: /* ISO8859 */
if ((*(src + 1) != 0) || *(src + 2)  0x0f)

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html