From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Windows 9X without KernelEx Date: Sat, 15 Jun 2024 12:45:02 +0800 Message-ID: <87o7827r1t.fsf@yahoo.com> References: <875xub8sn8.fsf.ref@yahoo.com> <875xub8sn8.fsf@yahoo.com> <8634pfy289.fsf@gnu.org> <87sexe7sgm.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8029"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 15 06:46:09 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sILIn-0001vr-4T for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Jun 2024 06:46:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sILHz-0004Rt-Jl; Sat, 15 Jun 2024 00:45:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sILHx-0004RY-NI for emacs-devel@gnu.org; Sat, 15 Jun 2024 00:45:17 -0400 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sILHv-0008B0-M2 for emacs-devel@gnu.org; Sat, 15 Jun 2024 00:45:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1718426713; bh=Wwu8Cdp/8wr3ihCidDkQ5vATBrfaFZttDo+OWCt58mY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=hqSwDxwDhXlLcC17c6j6X4TWC4toHSnI3yZugtYtNZBxzgoH5GR6bNG4jnfVecmX04d1UD+bg+hLu5Ib81xsKq6BYjqhwNDuPAnPY/Y6PiW1mi+h1B3T7gX2a2OHG+caFpgAg483zpLen2RMXRjGmZsCq7uOgd6IwIchtPrAP7wAD/2bcx9yENPG3ZYVUeJLNjJwq4pUInhZsCRXb1B0B+g7Ya0pA9ZdSNvoQcfrLsoloemkEJbPT5IksUjZCps/ADCWGn2kwpfp0ci1aZDcHS9w0mbYDEDXSLSO9KEIPCoKt1iUlK8K6MZEvUBuek8rf1lRTF+1YIbpJcNJzQ6EGA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1718426713; bh=gPOWWLFJohifRAw31mJPqN72CUnMmJBTl1njMv5ovWJ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=J0I5SmVZLEFNj5Hhpld7N34WBL6+sZQRNejrBLNcB6RKe1PS7ibas7SyZ0ypQaNAnQ7B33iCY6Yj1MuUJloYdjQg7O4SAHnkJgoBKmLyfo3Nu/Wq/t7xvPFcAUbXxLDFTtab+Yv31c/SZ0I0Vr5fFbCoGjALXgQDu9UaoCRpfsOFrRUwGEP7NVoifndiFjiS2+ICrE207/CEDMvziKpjJKyjsZ0A3uGnPbFTQI9+86odK2B+neFPIkOGLGYdYnRN0SSXUhjuDp6VKQxcNM6lXcxcR8zv8OFQcdrKg8/vok+6YQEbAAUnmuPxOb9PfdkhQgHhwkv8BPlPcHLAs3u8OA== X-YMail-OSG: o2X57jEVM1mwJ0.eXMn_Ito1ZVKj1BBPQYHw1mIbFTEcf_XSI4_URS4KM2W34GV tQfhlsyoqZIFPkcd4vcFwrk0gFuFkjSzpejZKkU3T4w6hEM2QGFQ7yOIsHbgyrdAIZHk7K5oiVc6 si7Ls1S2aSE20Ai.iki5ND0iaeShEsj8j.A1hI.zB1MIzr6KRuAn39p_doEO0dTg7XgTB27OTcE2 XViPHFk7Vo_fcR4qkefWIqNpbkyG3mnj1jlYor68rNN_9tiDNDBmnlbrDdXZvrXeRZkDS1_LwOIu I1iZMGQIyUD0nF_rBdpYtslFFIzhBe_qWnEQRk5pZnazDvCEUruc1BQCGYSH40UHydCMi1gKnPB_ XXLNKwCXZ_T9f1KSwInjGxI9p6i9VVX3WJAZD7XOdAxWR9mXpjFdmMBYLVm4MsB4CE9YyrrncNeO on.bh2QqLrJUbit0zfBkYRmJNZvww1TJxhEJuwMbpDgAV7.DdsQytgMWgnq1PuCS.GSVJj7Bvjy5 6qkb.F1l_k0V5XAs0xtez1xMmrH4IxGUDkH1GA2xx_EIKPEUsxnRoecb8oFaQituggwtibXlyXVl QcL0Rufbhg8Q7pJN3Eejl1A9UYFKFKPXbAnOmgoumzpUVg5VTmuYGKSb.InULcZhsHgnNljbxBZX ELXdNohwsI7d13O1eGPLEO5jp6M_334wi.aEzrgDH9Uz2Oi9Y3vwlr9dVRMjkWDQ9OxCxpLVn26y IkT5UUj4Uju91kdIOPSZTaBYLA0l.e.yDOn15l5qfHzWRmG_XEOduIFYz5k4hKtjDyVAi7.78r3e 6cFpChlbCsPIL1GjwCHp6mRZThYGGsgTJGGc1DFI0O X-Sonic-MF: X-Sonic-ID: 7f8bece5-5b0f-4192-a611-ebc80938f473 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sat, 15 Jun 2024 04:45:13 +0000 Original-Received: by hermes--production-sg3-7b469d9f6-2w46x (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 53126d12e2270b7c5808889065dd7d2f; Sat, 15 Jun 2024 04:45:08 +0000 (UTC) In-Reply-To: <87sexe7sgm.fsf@yahoo.com> (Po Lu's message of "Sat, 15 Jun 2024 12:14:33 +0800") X-Mailer: WebService/1.1.22407 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.206; envelope-from=luangruo@yahoo.com; helo=sonic311-25.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320094 Archived-At: Po Lu writes: > Stefan Kangas writes: > >> BTW, would the below patch make sense? > > No, not at present, because it won't run on Windows 98 either, without > KernelEx. OK, following are my conclusions from tests conducted on "real" Windows 98 and 95 installations with no supplemental software but the Microsoft Layer for Unicode. These DLLs and symbols are missing (not merely stubs) from English installations of both: USP10.DLL ScriptItemize ScriptShape ScriptPlace ScriptGetGlyphABCWidth ScriptFreeCache ScriptGetCMap Shell_NotifyIconW ShellExecuteExW SHFileOperationW ReadDirectoryChangesW these symbols are absent from only Windows 95: CancelIo SendInput GetWindowInfo GetMenuBarInfo all of which the patch posted renders optional or replaces. The posted modifications to `w32_init_file_name_codepage' are only necessary if Emacs binaries produced on Windows NT systems are to start on 9X, which explains why the crashes they resolve were not encountered in my earlier testing on real hardware. With said patch, Emacs is capable of functioning on Windows 98 to the extent of running Gnus, connecting to a IMAP and SMTP servers, reading and composing mail in English, and on Windows 95, where I didn't succeed in configuring networking in the VM, calling all Lisp functions affected by the patch without crashing or returning obviously unsatisfactory results. Of the functions exclusive to Windows 98, SendInput and CancelIo are never called on 9X systems, since funhook is not installed on such systems and file notifications are disabled on all 9X systems, and GetWindowInfo and GetMenuBarInfo are either omitted on Windows 95 in the patch, or trivially replaced, without complicating affected code.