From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Including unconditionally in Emacs Date: Wed, 5 Jun 2024 13:18:42 -0700 Organization: UCLA Computer Science Department Message-ID: <1906c20b-1c6a-4fce-9e55-9667b32ec8f4@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="816"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 05 22:20:55 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 1sEx7v-000Aa1-8k for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Jun 2024 22:20:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEx5x-0004sB-IP; Wed, 05 Jun 2024 16:18:53 -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 1sEx5w-0004ro-6M for Emacs-devel@gnu.org; Wed, 05 Jun 2024 16:18:52 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEx5r-0006ti-5P for Emacs-devel@gnu.org; Wed, 05 Jun 2024 16:18:51 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 3916C3C00E8B0 for ; Wed, 5 Jun 2024 13:18:43 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id ZyXbb6CX6jKI for ; Wed, 5 Jun 2024 13:18:42 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 97BF13C01409E for ; Wed, 5 Jun 2024 13:18:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 97BF13C01409E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1717618722; bh=45Wl/VC3wfJSQyEyd7Ot35mC42eLwgVTEZXuIr1dswI=; h=Message-ID:Date:MIME-Version:To:From; b=QGW3QyeHzAjUnfuVTiqi+B3GczjfdRRwS9JIHgMwDxHdA3+2jysbtgmNSdBLh7F3a /A6aVvhBkU3pyEgdAYkK300YrD31z7nkHPJAYpLRa6UZqBM8nY9d1mwdphGhwl3K7C OgqcEN2y6CNdFuGBiXNgLq3G5ZU/tOPmBSFWbK9vc5Fyf/QYgNjgMZlNdO/biIgf4l mZP0cD2t+Ufz4y0tP+EjL7pyJEukFrye1PNoh3CDPPeMewANOQHCx172PXUqZ7fjqJ 8DEMtkOWgkNckXEAe55LLi87I2daDmCs1o+DsuqF/JA0ZRP3fuvXts1Dp6siUIFvMQ EtkWGXxg/5Cnw== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id EcSEmwnhgusY for ; Wed, 5 Jun 2024 13:18:42 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 817953C011BD4 for ; Wed, 5 Jun 2024 13:18:42 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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:319837 Archived-At: was standardized in C89, and all C platforms in current use have it, if only to supply a dummy implementation with only a C locale. However, the Emacs C source code currently attempts to port to platforms lacking with code like this (though details vary): #ifdef HAVE_SETLOCALE # include #endif This sort of code dates back to the 1990s when some older platforms predating C89 support presumably lacked and setlocale. As Emacs surely long ago stopped porting to platforms so obsolete that they lack , I assume it would be OK for Emacs to start including unconditionally. I thought I'd ask here first, though, just to make sure. This topic came up on the Gnulib mailing list, since Emacs uses Gnulib modules that currently have code to work around the absence of , code that is a bit of a hassle and that we'd rather stop maintaining and that is present only because Emacs uses those modules. You can see the Gnulib thread here: https://lists.gnu.org/r/bug-gnulib/2024-06/msg00057.html