On June 20, 2010 at 2:24AM +0900,
hirofumi (at mail.parknet.co.jp) wrote:

> Package: eblook
> Version: 1:1.6.1-6
> Severity: normal
[...]
> I recently saw the eblook's wrong behavior with "-e euc-jp" on
> LANG=ja_JP.UTF-8.
[...]
> With some debugging, the cause of this behavior looks like readline()
> returned the 'search "ใƒ†ใ‚นใƒˆ'. Because, perhaps locale is "UTF-8", but
> input text was EUC-JP, I'm not sure though.
> 
> This setup (-e euc-jp on UTF-8) is the default of lookup-el on emacs.
> 
> Any idea to fix this?

Hmm, with or without readline(), eblook on UTF-8 seems buggy.

Does LC_ALL=C prevent your problem?

I'm thinking about updating the lookup-el package as follows.

----
Description: Set locale to "C" for eblook to prevent a problem on UTF-8 
environments
Bug-Debian: http://bugs.debian.org/586455
Author: Tatsuya Kinoshita <t...@debian.org>

--- lookup-el-1.4.1.orig/lisp/ndeb.el   2004-01-28 09:09:34.000000000 +0900
+++ lookup-el-1.4.1/lisp/ndeb.el        2010-06-20 07:27:46.000000000 +0900
@@ -44,6 +44,11 @@
   :type 'string
   :group 'ndeb)
 
+(defcustom ndeb-program-locale "C"
+  "*Locale for eblook."
+  :type 'string
+  :group 'ndeb)
+
 (defcustom ndeb-prompt-string "eblook> "
   "*Prompt string of eblook."
   :type 'string
@@ -361,6 +366,10 @@
   (let* ((args (cons "-q"
                     (cons ndeb-program-arguments
                           (cons directory (if appendix (list appendix))))))
+        (process-environment (copy-sequence process-environment))
+        (setenv "LANGUAGE" ndeb-program-locale)
+        (setenv "LC_ALL" ndeb-program-locale)
+        (setenv "LANG" ndeb-program-locale)
         (buffer (lookup-open-process-buffer (concat " *ndeb+" directory "*")))
         (process (apply 'start-process "ndeb" buffer ndeb-program-name args)))
     (process-kill-without-query process)
----

Thanks,
-- 
Tatsuya Kinoshita



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to