From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Niels =?UTF-8?Q?S=C3=B8ndergaard?= Newsgroups: gmane.emacs.bugs Subject: bug#51321: 29.0.50; date in modelines Date: Tue, 2 Nov 2021 04:40:29 +0100 Message-ID: References: <83bl35o95u.fsf@gnu.org> <83cznkm25j.fsf@gnu.org> <838ry8lzal.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_CC84CFD1-5B2F-4294-B737-BFB016530304" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third , Niels =?UTF-8?Q?S=C3=B8ndergaard?= , stefan@marxist.se, 51321@debbugs.gnu.org, larsi@gnus.org, Filipp Gunbin To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 02 04:41:45 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 1mhkgD-00045l-G4 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Nov 2021 04:41:45 +0100 Original-Received: from localhost ([::1]:49346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhkgB-0000GQ-PZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Nov 2021 23:41:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhkfW-0000GA-Nc for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2021 23:41:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhkfW-0007LW-By for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2021 23:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhkfW-0006Mi-85 for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2021 23:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Niels =?UTF-8?Q?S=C3=B8ndergaard?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Nov 2021 03:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51321-submit@debbugs.gnu.org id=B51321.163582445824451 (code B ref 51321); Tue, 02 Nov 2021 03:41:02 +0000 Original-Received: (at 51321) by debbugs.gnu.org; 2 Nov 2021 03:40:58 +0000 Original-Received: from localhost ([127.0.0.1]:36457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhkfN-0006MF-Bt for submit@debbugs.gnu.org; Mon, 01 Nov 2021 23:40:58 -0400 Original-Received: from algon.dk ([212.99.233.66]:57380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhkfK-0006Lx-10 for 51321@debbugs.gnu.org; Mon, 01 Nov 2021 23:40:52 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by algon.dk (Postfix) with ESMTP id 31EA22004B; Tue, 2 Nov 2021 04:40:44 +0100 (CET) X-Virus-Scanned: amavisd-new at algon.dk Original-Received: from algon.dk ([127.0.0.1]) by localhost (odin.algon.dk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CMHfYWYeawsW; Tue, 2 Nov 2021 04:40:42 +0100 (CET) Original-Received: from smtpclient.apple (unknown [85.83.136.51]) by algon.dk (Postfix) with ESMTPA id 67E3320047; Tue, 2 Nov 2021 04:40:42 +0100 (CET) X-Mailbutler-Data: eyJzaWduYXR1cmVJRCI6IjFEOEY1NzZELTc3NjYtNDA4NC04MTk4LTU4REIyNTAzMjRDRSJ9 In-Reply-To: X-Mailbutler-Message-Id: 861AB74F-FB09-4157-874D-EE77EBD92798 X-Mailer: Apple Mail (2.3693.20.0.1.32) 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:218798 Archived-At: --Apple-Mail=_CC84CFD1-5B2F-4294-B737-BFB016530304 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello=20 I do nothing special, I do use the sourcecode of 29.0.50 from GitHub = direct, build the emacs for nextstep, and launch it from the GUI of = macOS. By now it works perfectly. This is my build script: #!/bin/zsh # Build emacs from daily github save date > emacs-build.log 2>&1 # logfile echo "build emacs 29.0.50" > emacs-build.log 2>&1 # logfile cd emacs >> ../emacs-build.log 2>&1 # logfile ##### make clean >> ../emacs-build.log 2>&1 # logfile if [ $? -eq 0 ]; then echo " " $(date +%H:%M:%S) "make clean status exited = successfully" else echo "autogen.sh status exited with error code" fi ##### ./autogen.sh >> ../emacs-build.log 2>&1 if [ $? -eq 0 ]; then echo " " $(date +%H:%M:%S) "autogen.sh status exited = successfully" else echo "autogen.sh status exited with error code" fi #### git config pull.rebase false # merge (the default strategy) git pull >> ../emacs-build.log 2>&1 if [ $? -eq 0 ]; then echo " " $(date +%H:%M:%S) "git status exited = successfully" else echo "git status exited with error code" fi #### ./configure --with-native-compilation --with-xwidgets --with-mailutils = >> ../emacs-build.log 2>&1 ###./configure --with-xwidgets --with-mailutils >> ../emacs-build.log = 2>&1 if [ $? -eq 0 ]; then echo " " $(date +%H:%M:%S) "configuration exited = successfully" make >> ../emacs-build.log 2>&1 else echo "ERROR in configuration" fi # if [ $? -eq 0 ]; then echo " " $(date +%H:%M:%S) "make 'emacs' exited = successfully" make install >> ../emacs-build.log 2>&1 else echo "ERROR in make " fi cd .. echo " " $(date +%H:%M:%S) "Now go to emacs/nextstep and = move 'Emacs.app' to '/Applications/'" date >> emacs-build.log 2>&1 # logfile exit mvh Niels Niels S=C3=B8ndergaard Marieh=C3=B8j 236, 2990 Niv=C3=A5 +45 4052 2789niels@algon.dk Ultra posse nemo obligatur. > Den 1. nov. 2021 kl. 23.17 skrev Daniel Mart=C3=ADn = : >=20 > Alan Third writes: >=20 >>=20 >> I know almost nothing about the locale, but from reading the man = pages >> I can't understand why we need to set LC_ALL when we're already >> setting LANG. Isn't LANG the fallback if LC_ALL isn't set? >=20 > You are right. Setting LANG should be all that is needed and I think = my > patch should be reverted. >=20 > I'm still confused by Niels's issue, though. Given the screenshot he > showed, LANG should have been set to da_DK.UTF-8, which should show = the > weekday in Danish: >=20 > $ LANG=3Dda_DK.UTF-8 date +%c > Man 1 Nov 22:41:33 2021 >=20 > Perhaps the way he launches Emacs inherits a LANG variable already set > to English. Or there is a wrapper in some custom Emacs NS = distribution > that sets LANG to English beforehand. Anyway, I think it's a > configuration problem somewhere, unrelated to Emacs, that should be > handled by the user overriding the time locale manually: >=20 > (setq system-time-locale "da_DK.UTF-8") >=20 > WDYT? Sorry, in retrospective, I think I didn't do the absolutely > correct thing here. --Apple-Mail=_CC84CFD1-5B2F-4294-B737-BFB016530304 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello 

I do nothing special, I do use the sourcecode of 29.0.50 from = GitHub direct, build the emacs for nextstep, and launch it from the GUI = of macOS.
By now it works perfectly.

This is my build = script:
#!/bin/zsh
# Build = emacs from daily github save

date > = emacs-build.log 2>&1        # = logfile
echo "build emacs = 29.0.50" > emacs-build.log 2>&1        # = logfile
cd emacs  >> = ../emacs-build.log 2>&1        # = logfile

#####
make clean >> ../emacs-build.log = 2>&1        # logfile
if [ $? -eq 0 ]; then
  echo "             =   " $(date +%H:%M:%S) "make clean status exited = successfully"
else
  echo "autogen.sh status exited with = error code"
fi
#####
./autogen.sh >> ../emacs-build.log = 2>&1
if [ $? -eq 0 ]; = then
  echo "     =           " $(date +%H:%M:%S) "autogen.sh = status exited successfully"
else
  echo = "autogen.sh status exited with error code"
fi
####
git config pull.rebase false     =      # merge (the default strategy)
git pull >> ../emacs-build.log = 2>&1

if [ $? -eq 0 ]; = then
  echo "     =           " $(date +%H:%M:%S) "git status = exited successfully"
else
    = echo "git status exited with error code"
fi

####
./configure --with-native-compilation --with-xwidgets = --with-mailutils  >> ../emacs-build.log = 2>&1
###./configure = --with-xwidgets  --with-mailutils >> ../emacs-build.log = 2>&1
if [ $? -eq 0 ]; = then
  echo  "   =             " $(date +%H:%M:%S) = "configuration exited successfully"
  make >> ../emacs-build.log = 2>&1
else
  echo "ERROR in = configuration"
fi
#
if [ = $? -eq 0 ]; then
  echo " =               " $(date +%H:%M:%S) = "make 'emacs' exited successfully"
  make install >> ../emacs-build.log = 2>&1
else
  echo "ERROR in make "
fi
cd = ..
echo "       =         " $(date +%H:%M:%S) "Now go to = emacs/nextstep and move 'Emacs.app' to '/Applications/'"
date >> emacs-build.log 2>&1 =        # logfile
exit

mvh
Niels






3D"Signature
Ultra posse nemo obligatur.
          =                     =                     =          

Den 1. nov. 2021 kl. 23.17 skrev Daniel Mart=C3=ADn <mardani29@yahoo.es>:

Alan = Third <alan@idiocy.org> writes:


I know = almost nothing about the locale, but from reading the man pages
I can't understand why we need to set LC_ALL when we're = already
setting LANG. Isn't LANG the fallback if LC_ALL = isn't set?

You are right. =  Setting LANG should be all that is needed and I think my
patch should be reverted.

I'm = still confused by Niels's issue, though.  Given the screenshot = he
showed, LANG should have been set to da_DK.UTF-8, which = should show the
weekday in Danish:

$ LANG=3Dda_DK.UTF-8 date +%c
Man  1 Nov = 22:41:33 2021

Perhaps the way he launches = Emacs inherits a LANG variable already set
to English. =  Or there is a wrapper in some custom Emacs NS distribution
that sets LANG to English beforehand.  Anyway, I think = it's a
configuration problem somewhere, unrelated to = Emacs, that should be
handled by the user overriding the = time locale manually:

(setq = system-time-locale "da_DK.UTF-8")

WDYT? =  Sorry, in retrospective, I think I didn't do the absolutely
correct thing here.

3D""= --Apple-Mail=_CC84CFD1-5B2F-4294-B737-BFB016530304--