Hatena::ブログ(Diary)

後悔^H^H公開日記:別館 このページをアンテナに追加 RSSフィード

プロフィール

monamour555

組込み系オープンソースな人

[FSF Associate Member]
カレンダー
<< 2007/11 >>
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
最近のコメント

2007-11-14

郵便配達人の血痕

$ cat /var/log/mailman/error  
Nov 14 09:57:03 2007 (225) Uncaught runner exception: unknown encoding: iso-2022-jp
Nov 14 09:57:03 2007 (225) Traceback (most recent call last):
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/Mailman/Queue/OutgoingRunner.py", line 73, in _dispose
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/Mailman/Handlers/SMTPDirect.py", line 132, in process
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/Mailman/Handlers/Decorate.py", line 177, in process
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/pythonlib/email/MIMEText.py", line 37, in __init__
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/pythonlib/email/Message.py", line 246, in set_payload
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/pythonlib/email/Message.py", line 282, in set_charset
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/pythonlib/email/Charset.py", line 399, in body_encode
  File "/BinaryCache/mailman/mailman-126~18/Root/usr/share/mailman/pythonlib/email/Charset.py", line 282, in convert
LookupError: unknown encoding: iso-2022-jp

ぷぎゃ.

公式にはwell known な問題らしい?

一応日本語圏向けのパッケージもあるのだから,きちんと対応してほしい.> Apple.

パッチ

--- /usr/share/mailman/pythonlib/email/Charset.py.org	2007-11-14 11:36:30.000000000 +0900
+++ /usr/share/mailman/pythonlib/email/Charset.py	2007-11-14 10:54:45.000000000 +0900
@@ -52,9 +52,9 @@ CHARSETS = {
     'us-ascii':    (None,      None,    None),
     'big5':        (BASE64,    BASE64,  None),
     'gb2312':      (BASE64,    BASE64,  None),
-    'euc-jp':      (BASE64,    None,    'iso-2022-jp'),
-    'shift_jis':   (BASE64,    None,    'iso-2022-jp'),
-    'iso-2022-jp': (BASE64,    None,    None),
+    'euc-jp':      (BASE64,    None,    'iso2022_jp'),
+    'shift_jis':   (BASE64,    None,    'iso2022_jp'),
+    'iso-2022-jp': (BASE64,    None,    'iso2022_jp'),
     'koi8-r':      (BASE64,    BASE64,  None),
     'utf-8':       (SHORTEST,  BASE64, 'utf-8'),
     # We're making this one up to represent raw unencoded 8-bit

こんな感じ.

ところで,このパッチ,送るとしたら mmjp-ML? それとも Apple?

なかのひと あわせて読みたいブログパーツ
Connection: close