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#8562: Emacs 23.1 and later don't work in windows 98 Date: Mon, 30 May 2011 21:43:21 +0300 Message-ID: <83vcwsf2ra.fsf@gnu.org> References: <83d3k88k6o.fsf@gnu.org> <83wri4kpwb.fsf@gnu.org> <83d3j9e2pn.fsf@gnu.org> <8339k3esws.fsf@gnu.org> <83wrhed91s.fsf@gnu.org> <838vtscbeu.fsf@gnu.org> <83vcwvc1eq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1306781056 28409 80.91.229.12 (30 May 2011 18:44:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 18:44:16 +0000 (UTC) Cc: 8562@debbugs.gnu.org To: oslsachem Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 30 20:44:11 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 1QR7Rf-0001VO-Px for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2011 20:44:07 +0200 Original-Received: from localhost ([::1]:38768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR7Rf-00053j-5v for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2011 14:44:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR7Rc-00053V-AR for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 14:44:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QR7Ra-00076g-RR for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 14:44:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QR7Ra-00076c-Oa for bug-gnu-emacs@gnu.org; Mon, 30 May 2011 14:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QR7Ra-0007AA-0G; Mon, 30 May 2011 14:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 May 2011 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8562 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 8562-submit@debbugs.gnu.org id=B8562.130678101127490 (code B ref 8562); Mon, 30 May 2011 18:44:01 +0000 Original-Received: (at 8562) by debbugs.gnu.org; 30 May 2011 18:43:31 +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 1QR7R4-00079K-A5 for submit@debbugs.gnu.org; Mon, 30 May 2011 14:43:30 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QR7R0-000793-O9 for 8562@debbugs.gnu.org; Mon, 30 May 2011 14:43:28 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LM000D00TZOMV00@a-mtaout21.012.net.il> for 8562@debbugs.gnu.org; Mon, 30 May 2011 21:43:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.21.174]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LM000DK8UO1KV50@a-mtaout21.012.net.il>; Mon, 30 May 2011 21:43:15 +0300 (IDT) 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: Mon, 30 May 2011 14:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46814 Archived-At: > Date: Mon, 30 May 2011 17:12:26 +0200 > From: oslsachem > Cc: 8562@debbugs.gnu.org > > I remember having downloaded the MSLU from > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=73ba7bd7-ed06-4f0d-80a4-2a7eeaee17e2 > some time ago. > > "The download contains UnicoWS.dll (the MSLU binary), and UnicoWS.pdb > which can be used when debugging." > > These files are extracted in the directory that the user chooses. > > I had no idea where to put them, so I chose the windows subdirectory > which seemed to contain the most dll files and which happened to be > "system". The safest place is the same directory where you have emacs.exe. But doing what you did is also OK. > Unfortunately, after adding the "system" directory to the path ( or > another one which contains the unicows.dll ) the same error ( 120 ) > still appears in Emacs. > > > If you have that package installed, can you try compiling a simple > > program that just calls these two functions, and run it on the Windows > > 98 machine to see if they fail in the same way? > > They seem to work in the sample program: > > http://www.speedyshare.com/files/28718617/sample.c > > http://www.speedyshare.com/files/28718618/sampleGDB.txt The difference here is that your sample program dynamically loads unicows.dll: > Breakpoint 1, WinMain (hInstance=0x400000, hPrevInstance=0x0, > lpCmdLine=0x81631ea2 "", nCmdShow=10) at sample.c:139 > 139 hm_unicows = LoadLibrary("unicows.dll"); whereas Emacs doesn't, AFAICT. Could you try loading that DLL in Emacs, by adding just the single line as the one above to some function that is run early during the startup, e.g. in globals_of_w32? (There's no need to go to extra lengths such as calling GetOutlineTextMetricsW and GetTextMetricsW through function pointers.) Then recompile Emacs and see if that solves the problem. Thanks.