Debian Bug report logs - #336554
w3m: migemo won't work with w3m when LANG=ja_JP.UTF-8

version graph

Package: migemo; Maintainer for migemo is (unknown);

Reported by: kmuto <kmuto@topstudio.co.jp>

Date: Mon, 31 Oct 2005 06:33:04 UTC

Severity: normal

Fixed in version migemo/0.40-8

Done: Kenshi Muto <kmuto@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Kenshi Muto <kmuto@debian.org>, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#336554; Package w3m. (full text, mbox, link).


Acknowledgement sent to kmuto <kmuto@topstudio.co.jp>:
New Bug report received and forwarded. Copy sent to Kenshi Muto <kmuto@debian.org>, Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: kmuto <kmuto@topstudio.co.jp>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: w3m: migemo won't work with w3m when LANG=ja_JP.UTF-8
Date: Mon, 31 Oct 2005 15:20:06 +0900 (JST)
Package: w3m
Version: 0.5.1-3
Severity: normal

Hi,

Please reassign to migemo package if this is just migemo's problem.

I was using w3m on ja_JP.UTF-8 locale, and noticed migemo won't work
on w3m. I think this is because migemo only supports EUC-JP.

Thanks,
-- 
Kenshi Muto
kmuto@debian.org



Bug reassigned from package `w3m' to `migemo'. Request was from Kenshi Muto <kmuto@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#336554; Package migemo. (full text, mbox, link).


Acknowledgement sent to KISE Hiroshi <kise@fuyuneko.jp>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #12 received at 336554@bugs.debian.org (full text, mbox, reply):

From: KISE Hiroshi <kise@fuyuneko.jp>
To: 336554@bugs.debian.org
Subject: patch to migemo for LANG=ja_JP.UTF-8
Date: Sun, 18 Feb 2007 19:39:21 +0900 (JST)
[Message part 1 (text/plain, inline)]
I attached the patch.  This is quick durty hack, work on
LANG=ja_JP.UTF-8 only.  Ofcause, patched migemo is not work on
LANG=ja_JP.eucJP.

I want to rewrite for work on UTF-8 and EUC-JP, but I can't.

This patch is for migemo_0.40-7.1.
[migemo.diff (text/plain, inline)]
--- migemo.orig	2006-12-28 06:28:15.000000000 +0900
+++ migemo	2007-01-17 22:11:02.000000000 +0900
@@ -15,6 +15,7 @@
 require 'migemo'
 require 'getoptlong'
 require 'thread'
+require 'nkf'
 
 class Logger
   def initialize (filename)
@@ -155,7 +156,7 @@
       regex_str = [regex_str1, regex_str2].join(bar)
     end
 
-    puts regex_str
+    puts NKF.nkf('-Ew', regex_str)
     puts options['separator'] if options['separator']
     logger.puts(pattern) if logger
   end

Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#336554; Package migemo. (full text, mbox, link).


Acknowledgement sent to Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #17 received at 336554@bugs.debian.org (full text, mbox, reply):

From: Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp>
To: 336554@bugs.debian.org
Subject: yet another patch for #336554
Date: Sun, 08 Jun 2008 23:16:01 +0900
[Message part 1 (text/plain, inline)]
Hi,

I think this problem should be fixed on w3m side because adding a character 
conversion facility to migemo causes a conversion twice.
(w3m converts a string to the system's encoding(UTF-8) and migemo convert back 
to EUC-JP.)

An attached patch is for w3m.
This patch changes the "to encoding" to EUC-JP from system's encoding.
It works on EUC-JP and UTF-8 locales.

Thanks,

-- 
Morita Sho <morita-pub-en-debian@inz.sakura.ne.jp>
[w3m-0.5.2-output-encoding-for-migemo.patch (text/x-diff, inline)]
diff -u w3m-0.5.2.orig/search.c w3m-0.5.2/search.c
--- w3m-0.5.2.orig/search.c	2004-03-24 01:44:02.000000000 +0900
+++ w3m-0.5.2/search.c	2008-06-08 21:40:59.000000000 +0900
@@ -58,7 +58,7 @@
     if (migemor == NULL || migemow == NULL)
 	if (open_migemo(migemo_command) == 0)
 	    return str;
-    fprintf(migemow, "%s\n", conv_to_system(str));
+    fprintf(migemow, "%s\n", wc_conv_strict(str, InnerCharset, WC_CES_EUC_JP)->ptr);
   again:
     if (fflush(migemow) != 0) {
 	switch (errno) {
@@ -68,7 +68,7 @@
 	    goto err;
 	}
     }
-    tmp = Str_conv_from_system(Strfgets(migemor));
+    tmp = wc_Str_conv(Strfgets(migemor), WC_CES_EUC_JP, InnerCharset);
     Strchop(tmp);
     if (tmp->length == 0)
 	goto err;

Reply sent to Kenshi Muto <kmuto@debian.org>:
You have taken responsibility. (Thu, 03 Sep 2009 13:15:21 GMT) (full text, mbox, link).


Notification sent to kmuto <kmuto@topstudio.co.jp>:
Bug acknowledged by developer. (Thu, 03 Sep 2009 13:15:21 GMT) (full text, mbox, link).


Message #22 received at 336554-close@bugs.debian.org (full text, mbox, reply):

From: Kenshi Muto <kmuto@debian.org>
To: 336554-close@bugs.debian.org
Subject: Bug#336554: fixed in migemo 0.40-8
Date: Thu, 03 Sep 2009 12:47:11 +0000
Source: migemo
Source-Version: 0.40-8

We believe that the bug you reported is fixed in the latest version of
migemo, which is due to be installed in the Debian FTP archive:

migemo_0.40-8.diff.gz
  to pool/main/m/migemo/migemo_0.40-8.diff.gz
migemo_0.40-8.dsc
  to pool/main/m/migemo/migemo_0.40-8.dsc
migemo_0.40-8_all.deb
  to pool/main/m/migemo/migemo_0.40-8_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 336554@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kenshi Muto <kmuto@debian.org> (supplier of updated migemo package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 03 Sep 2009 21:01:57 +0900
Source: migemo
Binary: migemo
Architecture: source all
Version: 0.40-8
Distribution: unstable
Urgency: medium
Maintainer: Kenshi Muto <kmuto@debian.org>
Changed-By: Kenshi Muto <kmuto@debian.org>
Description: 
 migemo     - Japanese incremental search with Romaji on Emacsen
Closes: 336554 397838 418663 543125
Changes: 
 migemo (0.40-8) unstable; urgency=medium
 .
   * New maintainer upload.
   * Use emacs23 instead of emacs21 as build-depends and depends.
     (closes: #543125)
   * Support both UTF-8 and EUC-JP depends on user's locale.
     (closes: #336554)
   * Remove automake from build-depends. (closes: #397838)
   * Use #!/usr/bin/ruby instead of env. (closes: #418663)
Checksums-Sha1: 
 ef7a9fc2cb660da81ae0e52b8f1e81a89d1dc24c 1045 migemo_0.40-8.dsc
 95aabec47e58654f74564280fe8140c387f076b2 45287 migemo_0.40-8.diff.gz
 9eb55327f55656b52a4f3300b489832c19cc6e1e 1642314 migemo_0.40-8_all.deb
Checksums-Sha256: 
 df615a171c72a4116a35d465d1fdb0e773c4d94413213d29d7c2d377ff89353c 1045 migemo_0.40-8.dsc
 ef48556d0d589926a376ecb4cc899dcaa7557131c041b30d0af07937f14a874c 45287 migemo_0.40-8.diff.gz
 14ff18cd0f4ff998013870c95ca107bef913ee1a7c0ee76a483280be46083421 1642314 migemo_0.40-8_all.deb
Files: 
 769eea6e0fe7386ae7d6c1de3ae2ed62 1045 utils optional migemo_0.40-8.dsc
 ec614454c3c09c4a35c666a815f162c6 45287 utils optional migemo_0.40-8.diff.gz
 764fa3dd9197bf154deadd306fe99524 1642314 utils optional migemo_0.40-8_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkqftt4ACgkQQKW+7XLQPLHhTgCfWcWhf0h5Ja7ng2qL+4mQFaTM
wI4AoIG1blw4mu/DmA54nT7DHDz46tfu
=xJDc
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 07 Oct 2009 07:41:44 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jun 5 03:34:21 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.