Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set Japanese charactors in list subject #218

Closed
frisky-gh opened this issue Mar 2, 2018 · 3 comments
Closed

Cannot set Japanese charactors in list subject #218

frisky-gh opened this issue Mar 2, 2018 · 3 comments

Comments

@frisky-gh
Copy link

At setting page "/wws/edit_list_request/LIST-ID/description", I cannot set Japanese characters in list subject.
If I set subject including characters such as "あ", those characters store as invalid, such as "Ã�Â".
I use sympa-6.2.16 (debian stable).

It is caused by character encoding. Perhaps, it will be fixed following patch:

--- /usr/share/sympa/lib/Sympa/List.pm.orig     2018-03-02 20:50:29.223568943 +0900
+++ /usr/share/sympa/lib/Sympa/List.pm  2018-03-02 20:50:49.984497769 +0900
@@ -8614,7 +8614,7 @@
                 $p->{'hour'}, $p->{'minute'};
             $fd->print(sprintf "%s %s\n\n", $key, $value);
         } else {
-            $fd->print(sprintf "%s %s\n\n", $key, $p);
+          $fd->print(sprintf "%s %s\n\n", $key, Encode::decode_utf8($p));
         }
     }

@ikedas
Copy link
Member

ikedas commented Mar 2, 2018

Hi @frisky-gh,

確証はないですが、この件はSympa 6.2.24で直っているかもしれません (#134)。busterで試していただくことは可能でしょうか。

I’m not sure but the bug may possibly be fixed by Smpa 6.2.24 (see issue #134). Could you please check the buster?


03-04 Update

というか、#134での本質的な修正はこれだけですね。stableにこのパッチを適用して確認いただくのでもいいです。

@frisky-gh
Copy link
Author

ありがとうございます。
Sympa 6.2.24 (buster) で修正されていることを確認できました。

@ikedas
Copy link
Member

ikedas commented Mar 6, 2018

Duplicate of #134.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants