From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#52785: 29.0.50; user-full-name: "Chop off everything after the first comma" Date: Fri, 24 Dec 2021 14:35:00 -0500 Message-ID: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18897"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: 52785@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 24 20:37:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1n0qNM-0004hL-2G for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Dec 2021 20:37:12 +0100 Original-Received: from localhost ([::1]:35748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0qNK-00077d-Gu for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Dec 2021 14:37:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0qND-00077N-0J for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 14:37:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0qNC-0006wv-Nd for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 14:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n0qNC-0007mi-M2 for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 14:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Dec 2021 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52785 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164037457629850 (code B ref -1); Fri, 24 Dec 2021 19:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Dec 2021 19:36:16 +0000 Original-Received: from localhost ([127.0.0.1]:38100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0qMM-0007lI-4o for submit@debbugs.gnu.org; Fri, 24 Dec 2021 14:36:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n0qMI-0007l6-02 for submit@debbugs.gnu.org; Fri, 24 Dec 2021 14:36:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0qMH-000756-MJ for bug-gnu-emacs@gnu.org; Fri, 24 Dec 2021 14:36:05 -0500 Original-Received: from [2607:f8b0:4864:20::734] (port=38611 helo=mail-qk1-x734.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n0qMG-0006e1-0F; Fri, 24 Dec 2021 14:36:05 -0500 Original-Received: by mail-qk1-x734.google.com with SMTP id i187so6903033qkf.5; Fri, 24 Dec 2021 11:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:user-agent:return-receipt-to:reply-to:date :message-id:mime-version; bh=GRQLIoZfyAgh/OjWnq/umULyiIbZoEpxDEyi80aED6k=; b=oe2udd5gmFssal9bnIUdoQO+ThGX3XT8y7csPW+PYJucnou5wirDKv0KYKHLMNSTkh 5GsjCz5cUkR2ph1FSoTqRbPstbEZAfiMysaN7tYn0xrJy1ZOOh0dI6PYaU0rJATnpI/n /+LKFXh5NP31hhRi3AZYD9tZ8ODaRCarQc3Ru3d8Tl9G33jRFBJVPp/v3D2rNDHZIcz7 yj6fE1QYFccxPNUqyg8F4rUQ+J2V8w3gGzjcFtaeujeU3g3pJnUBNZ/fmtmUKjIP6N+y QJMfhDe+XWFceJ1lnEEWJ7O25zxQWvBfVqSTgYSd8+iV0ZuxS88hP7Y7AM7EJ9dhlqNE LqTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:user-agent :return-receipt-to:reply-to:date:message-id:mime-version; bh=GRQLIoZfyAgh/OjWnq/umULyiIbZoEpxDEyi80aED6k=; b=aZEx2LKc620HVuYOdIIBWzKcqpprFYmqI6BUt8sfmBnbaeLAIqCOS4bX1JZ3G98wt3 pDYTb3mtIz+Aw5uJhFzu1SZGGTjfuDKk7eJFJb1qpYeUGdbvib/9GvPYMG+2CcKMVeZg vbsPRWz1NUKS5cCJNOzfwtk7ZjwSBMJULkzEitRmuxyMNr0gmElXdPRE5tuAlN1fTP3E 2bH9dgki6tR5dDnbgeXcN4lr5cFXHTT0Q3jlwJm6XhYToe4p1fnGNH/q65FnqY8MniND HKVc6TeBtYJtAp73ko2uZN5tHAFELRxZdE6gp/EsZwfheWNV026y2LXlcJioji6EdwC+ 3M0A== X-Gm-Message-State: AOAM530a9HIymfl/Cr71/XIAvmKMnnY7vec9mHhq4M+dbeOXoplDjivB 1gW67RWifdWuvGsNyToNxE9Adch6Aw== X-Google-Smtp-Source: ABdhPJz7GwbMEznJA70u6jpQMqjHZIX9fCz96ji3XDsh6y3EbTbnv0KOSWi2d+oSje/V15hG3Lus1Q== X-Received: by 2002:a05:620a:298f:: with SMTP id r15mr3391567qkp.607.1640374502090; Fri, 24 Dec 2021 11:35:02 -0800 (PST) Original-Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id u7sm8194194qkp.17.2021.12.24.11.35.01 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Dec 2021 11:35:01 -0800 (PST) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::734 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=sam.steingold@gmail.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223065 Archived-At: Hi, Since at least 1996-12-08 (3415b0e9d2a), user-full-name has had the following code: --8<---------------cut here---------------start------------->8--- /* Chop off everything after the first comma. */ q = strchr (p, ','); full = make_string (p, q ? q - p : strlen (p)); --8<---------------cut here---------------end--------------->8--- The result is that when full name is specified in the system as "Steingold, Sam", `user-full-name' returns "Steingold". Are we really sure that this is still the intended behavior? If yes, we might want to document it in the doc string and info. Thank you. In GNU Emacs 29.0.50 (build 4, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.6.2 (Build 20G314)) of 2021-12-20 built on 3c22fb11fdab.ant.amazon.com Repository revision: 92ffe44834b8f77ee3f4d37edfdb19f30a376869 Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.6.2 Configured using: 'configure --with-imagemagick --with-mailutils --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig' Configured features: ACL GIF GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP ZLIB Important settings: value of $LANG: C locale-coding-system: utf-8-unix -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2022 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://www.peaceandtolerance.org/ https://ij.org/ http://think-israel.org recursion, n: See recursion.