From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9735: win32 emacs cannot load doc string from files which has non-ascii characters in path Date: Wed, 12 Oct 2011 18:36:19 +0200 Message-ID: <838voq416k.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1318437408 23213 80.91.229.12 (12 Oct 2011 16:36:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 16:36:48 +0000 (UTC) Cc: 9735@debbugs.gnu.org To: sssslang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 18:36:43 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE1nP-0005Is-4o for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 18:36:43 +0200 Original-Received: from localhost ([::1]:47654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE1nO-0003Rf-Lm for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 12:36:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE1nL-0003Qy-JA for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 12:36:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE1nK-0000ku-Nw for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 12:36:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE1nK-0000kq-LA for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 12:36:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RE1nh-0007q2-Sm for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 12:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2011 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9735 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9735-submit@debbugs.gnu.org id=B9735.131843741130114 (code B ref 9735); Wed, 12 Oct 2011 16:37:01 +0000 Original-Received: (at 9735) by debbugs.gnu.org; 12 Oct 2011 16:36:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RE1nW-0007pf-Tk for submit@debbugs.gnu.org; Wed, 12 Oct 2011 12:36:51 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RE1nV-0007pQ-3w for 9735@debbugs.gnu.org; Wed, 12 Oct 2011 12:36:50 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LSY00B00OFS9R00@a-mtaout23.012.net.il> for 9735@debbugs.gnu.org; Wed, 12 Oct 2011 18:36:18 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.51.78]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSY00BI1OSH6380@a-mtaout23.012.net.il>; Wed, 12 Oct 2011 18:36:18 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Oct 2011 12:37:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52590 Archived-At: > From: sssslang > Date: Wed, 12 Oct 2011 20:09:52 +0800 > > 1. make path to emacs.exe contains some non-latin characters > 2. execute: emacs.exe -Q > 3. (require 'cl) > > Then an error message will appear: > > Debugger entered--Lisp error: (error "Cannot open doc string file \"c:/xxxxx/eamacs23/lisp/emacs-lisp/cl.elc\"") > cl-random-time() > > I use emacs-23.2 and codepage936 on my Windows box. And the "xxxxx" in the error message should be the non-latin characters but is something like "\301\226" now. Except "cl" and "calendar", other elisp sources seems can be loaded without problem. I don't know what makes the difference, but the error maybe caused by incorrect path encoding. The attached patch works on my machine, but it didn't have enough test. Hopes somebody could improve it. Does it help to type C-x RET F cp936 RET before you evaluate "(require 'cl)" ?