From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: "args-out-of-range" error when using data from external process on Windows Date: Thu, 18 Apr 2024 09:05:30 +0300 Message-ID: <86le5bfbo5.fsf@gnu.org> References: <87bk671b7l.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22995"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alexis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 18 08:05:47 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 1rxKu3-0005jp-76 for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Apr 2024 08:05:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxKtq-00074t-7r; Thu, 18 Apr 2024 02:05:34 -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 1rxKtp-00074A-3e for emacs-devel@gnu.org; Thu, 18 Apr 2024 02:05:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxKto-0006qO-RB; Thu, 18 Apr 2024 02:05:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sMj+LwS7c3cVAfgBYz46TPXknPBxdUTQbmO3Uc248Xw=; b=RMGEoeGNf+Uj LvsciwKFCHR9jJbixfLttSLNsb6B6mnDQAo74hTJhc5XPC6Ul+SJzVEOz4yexGVS8VmfslXlFUOQb wLedw/jGbPc5JPo4gxTq0mU9PXWzG411DBIdNotHDVtspqhNVkB57rgM0JpUfbO7XKkDe/eCEbBRr zQdpJlSkRznF/bz3iMwHQ2PjGyhPXKOv1m1H595i9PL4aA60nnomsbcNZltuIdQlCjfKC3/60yFzZ jnZtvzVxsTE+J0IkCa2jLaXZ9ThyOXbyFWsVwNQVNCYGty6Ez3kQRxOHxLSL3oCK4maF15638yrMJ 6RzSJarabQyXHkUVBWFyQA==; In-Reply-To: <87bk671b7l.fsf@gmail.com> (message from Alexis on Thu, 18 Apr 2024 15:39:10 +1000) 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:317798 Archived-At: > From: Alexis > Date: Thu, 18 Apr 2024 15:39:10 +1000 > > * Their system: Windows 11, using Emacs 29.2 > * obtained via Scoop package manager; not using WSL > * LANG=zh_CN.UTF-8, LC_ALL=zh_CN.UTF-8 > * current-language-environment: UTF-8 locale-coding-system = cp936 > * default-process-coding-system = '(utf-8-dos . utf-8-unix) Btw: using UTF-8 by default on MS-Windows is not a very good idea, even with Windows 11 where one can enable UTF-8 support (did they do it, btw?). Windows still doesn't support UTF-8 well, even after the improvements in Windows 11, so the above settings might very well cause trouble. Suggest to ask the user to try the same recipe in "emacs -Q", and if the zh_CN.UTF-8 stuff is set up outside Emacs, to try without it.