aboutsummaryrefslogtreecommitdiff
path: root/japanese/lynx-current/files
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2010-08-22 13:48:51 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2010-08-22 13:48:51 +0000
commit11f835ef83a8279dde4ce0777a6a3cb63d491178 (patch)
treeb0fe915ea0ec4ce2169e51f32797f6ee6aac1c4d /japanese/lynx-current/files
parentbb561e762847d8d79552fcd8ade0ab63fa2f0655 (diff)
downloadports-11f835ef83a8279dde4ce0777a6a3cb63d491178.tar.gz
ports-11f835ef83a8279dde4ce0777a6a3cb63d491178.zip
Notes
Diffstat (limited to 'japanese/lynx-current/files')
-rw-r--r--japanese/lynx-current/files/patch-src-GridText.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/japanese/lynx-current/files/patch-src-GridText.c b/japanese/lynx-current/files/patch-src-GridText.c
new file mode 100644
index 000000000000..b2d72a4a7bc9
--- /dev/null
+++ b/japanese/lynx-current/files/patch-src-GridText.c
@@ -0,0 +1,31 @@
+--- src/GridText.c.orig 2010-04-26 08:44:30.000000000 +0900
++++ src/GridText.c 2010-05-24 18:15:47.000000000 +0900
+@@ -11128,9 +11128,28 @@
+ if (check_form_specialchars(val_used) != 0) {
+ /* We should translate back. */
+ StrAllocCopy(copied_val_used, val_used);
++ if (HTCJK == JAPANESE) {
++ if ((0 <= target_cs) &&
++ (strcmp(LYCharSet_UC[target_cs].MIMEname, "euc-jp") == 0)) {
++ TO_EUC(val_used, copied_val_used);
++ success = YES;
++ }
++ else if ((0 <= target_cs) &&
++ (strcmp(LYCharSet_UC[target_cs].MIMEname, "shift_jis") == 0)) {
++ TO_SJIS(val_used, copied_val_used);
++ success = YES;
++ }
++ else {
+ success = LYUCTranslateBackFormData(&copied_val_used,
+ form_ptr->value_cs,
+ target_cs, PlainText);
++ }
++ }
++ else {
++ success = LYUCTranslateBackFormData(&copied_val_used,
++ form_ptr->value_cs,
++ target_cs, PlainText);
++ }
+ CTRACE((tfp, "field \"%s\" %d %s -> %d %s %s\n",
+ NonNull(form_ptr->name),
+ form_ptr->value_cs,