all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#51321: 29.0.50; date in modelines
@ 2021-10-21 15:24 Niels Søndergaard
  2021-10-21 17:00 ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-21 15:24 UTC (permalink / raw)
  To: 51321

[-- Attachment #1: Type: text/plain, Size: 27261 bytes --]

Hello

Using time in the mode or tab line can't be changed to European format
(as far as I can see), the date in Europe is normally
"weekday day month year hour:minutes" or in short "wkd, dd MMM yy HH:MM"


In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.6 (Build 20G165))
of 2021-10-20 built on macal.local
Repository revision: 5f5189e9be6c70c4db99e8057287d16955b9c620
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2022
System Description:  macOS 11.6

Configured using:
'configure --with-native-compilation --with-xwidgets --with-mailutils'

Configured features:
ACL DBUS GLIB GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY
KQUEUE NS PDUMPER PNG RSVG THREADS TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB

Important settings:
  value of $LANG: da_DK.UTF-8
  locale-coding-system: utf-8

Major mode: Dashboard

Minor modes in effect:
  gcmh-mode: t
  global-emojify-mode: t
  emojify-mode: t
  pyvenv-mode: t
  projectile-mode: t
  global-git-gutter-mode: t
  org-super-agenda-mode: t
  global-flycheck-mode: t
  company-box-mode: t
  global-page-break-lines-mode: t
  page-break-lines-mode: t
  shell-dirtrack-mode: t
  dimmer-mode: t
  beacon-mode: t
  company-quickhelp-mode: t
  company-quickhelp-local-mode: t
  el-patch-use-package-mode: t
  company-statistics-mode: t
  global-company-mode: t
  company-mode: t
  ido-everywhere: t
  async-bytecomp-package-mode: t
  keyfreq-autosave-mode: t
  keyfreq-mode: t
  global-hl-line-mode: t
  global-display-line-numbers-mode: t
  ctrlf-mode: t
  ctrlf-local-mode: t
  all-the-icons-ivy-rich-mode: t
  ivy-rich-mode: t
  override-global-mode: t
  xterm-mouse-mode: t
  display-time-mode: t
  delete-selection-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  straight-live-modifications-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  global-prettify-symbols-mode: t
  tab-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
/Users/niels/.emacs.d/straight/build/org-roam/org-roam-node hides ~/.emacs.d/lisp/org-roam-node
/Users/niels/.emacs.d/straight/build/transient/transient hides /Applications/Emacs.app/Contents/Resources/lisp/transient
/Users/niels/.emacs.d/straight/build/python/python hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/python
/Users/niels/.emacs.d/straight/build/org/ob-exp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp
/Users/niels/.emacs.d/straight/build/org/ob-emacs-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp
/Users/niels/.emacs.d/straight/build/org/oc hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc
/Users/niels/.emacs.d/straight/build/org/ob-css hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css
/Users/niels/.emacs.d/straight/build/org/ob-lob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob
/Users/niels/.emacs.d/straight/build/org/ol-irc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-irc
/Users/niels/.emacs.d/straight/build/org/ob-forth hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-forth
/Users/niels/.emacs.d/straight/build/org/org-macs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs
/Users/niels/.emacs.d/straight/build/org/ob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob
/Users/niels/.emacs.d/straight/build/org/org-version hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-version
/Users/niels/.emacs.d/straight/build/org/ob-scheme hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme
/Users/niels/.emacs.d/straight/build/org/ox hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox
/Users/niels/.emacs.d/straight/build/org/ob-C hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C
/Users/niels/.emacs.d/straight/build/org/org-capture hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture
/Users/niels/.emacs.d/straight/build/org/ob-ref hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref
/Users/niels/.emacs.d/straight/build/org/ob-clojure hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure
/Users/niels/.emacs.d/straight/build/org/org-mouse hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse
/Users/niels/.emacs.d/straight/build/org/org-ctags hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags
/Users/niels/.emacs.d/straight/build/org/org-entities hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities
/Users/niels/.emacs.d/straight/build/org/org-archive hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive
/Users/niels/.emacs.d/straight/build/org/ob-screen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen
/Users/niels/.emacs.d/straight/build/org/ol-bibtex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bibtex
/Users/niels/.emacs.d/straight/build/org/ob-haskell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell
/Users/niels/.emacs.d/straight/build/org/org-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-table
/Users/niels/.emacs.d/straight/build/org/ol-eww hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eww
/Users/niels/.emacs.d/straight/build/org/ox-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-org
/Users/niels/.emacs.d/straight/build/org/org-num hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-num
/Users/niels/.emacs.d/straight/build/org/org-plot hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot
/Users/niels/.emacs.d/straight/build/org/ol-rmail hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-rmail
/Users/niels/.emacs.d/straight/build/org/ob-awk hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk
/Users/niels/.emacs.d/straight/build/org/ob-groovy hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-groovy
/Users/niels/.emacs.d/straight/build/org/ob-octave hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave
/Users/niels/.emacs.d/straight/build/org/org-faces hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces
/Users/niels/.emacs.d/straight/build/org/oc-biblatex hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-biblatex
/Users/niels/.emacs.d/straight/build/org/org-colview hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview
/Users/niels/.emacs.d/straight/build/org/ob-R hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R
/Users/niels/.emacs.d/straight/build/org/org-refile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-refile
/Users/niels/.emacs.d/straight/build/org/org-timer hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer
/Users/niels/.emacs.d/straight/build/org/org-mobile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile
/Users/niels/.emacs.d/straight/build/org/ob-fortran hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran
/Users/niels/.emacs.d/straight/build/org/ob-shell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shell
/Users/niels/.emacs.d/straight/build/org/ob-perl hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl
/Users/niels/.emacs.d/straight/build/org/ob-sqlite hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite
/Users/niels/.emacs.d/straight/build/org/oc-basic hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-basic
/Users/niels/.emacs.d/straight/build/org/ob-sed hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sed
/Users/niels/.emacs.d/straight/build/org/org-list hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-list
/Users/niels/.emacs.d/straight/build/org/ob-ruby hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby
/Users/niels/.emacs.d/straight/build/org/ob-eval hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval
/Users/niels/.emacs.d/straight/build/org/org-habit hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit
/Users/niels/.emacs.d/straight/build/org/org-clock hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock
/Users/niels/.emacs.d/straight/build/org/org-goto hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-goto
/Users/niels/.emacs.d/straight/build/org/ox-html hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-html
/Users/niels/.emacs.d/straight/build/org/org-src hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-src
/Users/niels/.emacs.d/straight/build/org/ob-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp
/Users/niels/.emacs.d/straight/build/org/ol-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eshell
/Users/niels/.emacs.d/straight/build/org/ob-ditaa hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa
/Users/niels/.emacs.d/straight/build/org/org-pcomplete hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete
/Users/niels/.emacs.d/straight/build/org/org-lint hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-lint
/Users/niels/.emacs.d/straight/build/org/ox-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-latex
/Users/niels/.emacs.d/straight/build/org/ob-sass hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass
/Users/niels/.emacs.d/straight/build/org/ob-tangle hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle
/Users/niels/.emacs.d/straight/build/org/ob-calc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc
/Users/niels/.emacs.d/straight/build/org/ob-java hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java
/Users/niels/.emacs.d/straight/build/org/ox-icalendar hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-icalendar
/Users/niels/.emacs.d/straight/build/org/ol-mhe hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-mhe
/Users/niels/.emacs.d/straight/build/org/org-attach-git hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach-git
/Users/niels/.emacs.d/straight/build/org/ox-md hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-md
/Users/niels/.emacs.d/straight/build/org/ox-beamer hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-beamer
/Users/niels/.emacs.d/straight/build/org/org-element hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-element
/Users/niels/.emacs.d/straight/build/org/oc-natbib hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-natbib
/Users/niels/.emacs.d/straight/build/org/org-protocol hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol
/Users/niels/.emacs.d/straight/build/org/ob-gnuplot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot
/Users/niels/.emacs.d/straight/build/org/org-tempo hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-tempo
/Users/niels/.emacs.d/straight/build/org/ol-w3m hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-w3m
/Users/niels/.emacs.d/straight/build/org/org-id hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-id
/Users/niels/.emacs.d/straight/build/org/ox-man hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-man
/Users/niels/.emacs.d/straight/build/org/ol-doi hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-doi
/Users/niels/.emacs.d/straight/build/org/org-feed hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed
/Users/niels/.emacs.d/straight/build/org/ob-lua hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lua
/Users/niels/.emacs.d/straight/build/org/ob-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table
/Users/niels/.emacs.d/straight/build/org/ob-ocaml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml
/Users/niels/.emacs.d/straight/build/org/oc-csl hides /Applications/Emacs.app/Contents/Resources/lisp/org/oc-csl
/Users/niels/.emacs.d/straight/build/org/ol-gnus hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-gnus
/Users/niels/.emacs.d/straight/build/org/org-indent hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent
/Users/niels/.emacs.d/straight/build/org/ob-lilypond hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond
/Users/niels/.emacs.d/straight/build/org/ob-matlab hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab
/Users/niels/.emacs.d/straight/build/org/org-datetree hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree
/Users/niels/.emacs.d/straight/build/org/ol-docview hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-docview
/Users/niels/.emacs.d/straight/build/org/ob-python hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python
/Users/niels/.emacs.d/straight/build/org/ob-makefile hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-makefile
/Users/niels/.emacs.d/straight/build/org/org-duration hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-duration
/Users/niels/.emacs.d/straight/build/org/ob-dot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot
/Users/niels/.emacs.d/straight/build/org/ob-js hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js
/Users/niels/.emacs.d/straight/build/org/ox-publish hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-publish
/Users/niels/.emacs.d/straight/build/org/org-inlinetask hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask
/Users/niels/.emacs.d/straight/build/org/ob-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org
/Users/niels/.emacs.d/straight/build/org/org-keys hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-keys
/Users/niels/.emacs.d/straight/build/org/ob-core hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-core
/Users/niels/.emacs.d/straight/build/org/org-compat hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat
/Users/niels/.emacs.d/straight/build/org/ol hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol
/Users/niels/.emacs.d/straight/build/org/ox-odt hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-odt
/Users/niels/.emacs.d/straight/build/org/ol-info hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-info
/Users/niels/.emacs.d/straight/build/org/ob-plantuml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml
/Users/niels/.emacs.d/straight/build/org/ob-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eshell
/Users/niels/.emacs.d/straight/build/org/ox-ascii hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-ascii
/Users/niels/.emacs.d/straight/build/org/org-loaddefs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-loaddefs
/Users/niels/.emacs.d/straight/build/org/ox-koma-letter hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-koma-letter
/Users/niels/.emacs.d/straight/build/org/ob-maxima hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima
/Users/niels/.emacs.d/straight/build/org/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org
/Users/niels/.emacs.d/straight/build/org/ol-bbdb hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bbdb
/Users/niels/.emacs.d/straight/build/org/org-macro hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macro
/Users/niels/.emacs.d/straight/build/org/ob-sql hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql
/Users/niels/.emacs.d/straight/build/org/org-attach hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach
/Users/niels/.emacs.d/straight/build/org/ob-processing hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-processing
/Users/niels/.emacs.d/straight/build/org/ox-texinfo hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-texinfo
/Users/niels/.emacs.d/straight/build/org/org-crypt hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt
/Users/niels/.emacs.d/straight/build/org/org-footnote hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote
/Users/niels/.emacs.d/straight/build/org/org-install hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-install
/Users/niels/.emacs.d/straight/build/org/ob-comint hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint
/Users/niels/.emacs.d/straight/build/let-alist/let-alist hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/let-alist
/Users/niels/.emacs.d/straight/build/map/map hides /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/map

Features:
(shadow sort mail-extr emacsbug sendmail vc ctrlf cus-start time-stamp
bug-reference aggressive-indent hl-block-mode dired-collapse gcmh
gcmh-autoloads org-indent image-file image-converter emojify apropos
tar-mode arc-mode archive-mode init linum whitespace phpunit-autoloads
ac-php-autoloads auto-complete-autoloads ac-php-core-autoloads
xcscope-autoloads php-mode-autoloads lsp-python-ms
lsp-python-ms-autoloads python-docstring-autoloads blacken-autoloads
yasnippet highlight-indentation flymake-proc flymake help-fns radix-tree
elpy elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile
elpy-django elpy-refactor elpy-autoloads yasnippet-autoloads
pyvenv-autoloads highlight-indentation-autoloads python-autoloads
counsel-projectile-autoloads projectile grep ibuf-ext ibuffer
ibuffer-loaddefs ghub-autoloads treepy-autoloads
git-timemachine-autoloads git-gutter git-gutter-autoloads
magit-autoloads git-commit-autoloads with-editor-autoloads calfw-org
org-capture calfw-org-autoloads calfw-cal calfw calfw-cal-autoloads
calfw-autoloads org-autolist-autoloads appt auctex-autoloads tex-site
org-noter-pdftools-autoloads org-pdftools-autoloads org-noter-autoloads
plantuml-mode-autoloads org-cliplink-autoloads org-leuven-agenda-views
org-super-agenda org-duration holidays hol-loaddefs vc-git diff-mode
vc-dispatcher diary-lib diary-loaddefs cal-iso company-wordfreq ispell
org-fancy-priorities toc-org org-bullets artbollocks-mode
rainbow-delimiters flycheck ol-eww ol-rmail ol-mhe ol-irc ol-info
ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art
mm-uu mml2015 mm-view mml-smime smime dig gnus-sum gnus-group gnus-undo
gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7
netrc nnoo gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader gnus-win ol-docview doc-view jka-compr image-mode exif
ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi company-box company-box-doc
frame-local company-box-icons company-abbrev company-lsp lsp-mode
lsp-protocol network-stream nsm rmc markdown-mode inline imenu ht ewoc
epg rfc6068 epg-config origami origami-parsers cl org-ebib
ebib-autoloads org-ref-autoloads pdf-tools-autoloads htmlize-autoloads
org-roam-timestamps-autoloads org-roam-ui-autoloads
simple-httpd-autoloads websocket-autoloads org-roam-autoloads
org-super-links-autoloads doct doct-autoloads org-bullets-autoloads
org-pomodoro-autoloads alert-autoloads log4e-autoloads gntp-autoloads
org-tree-slide-autoloads org-preview-html eww url-queue shr kinsoku puny
mm-url gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045
ietf-drums mail-utils mm-util mail-prsvr org-preview-html-autoloads
org-mime-autoloads toc-org-autoloads org-rich-yank-autoloads ob-plantuml
ob-sqlite ob-sql ob-latex ob-ditaa ob-dot ob-java ob-C cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
ob-css ob-gnuplot ob-shell ob-ruby ob-python python tramp-sh
docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration
files-x tramp-compat parse-time ls-lisp ob-perl ob-mermaid
ob-mermaid-autoloads ob-ipython-autoloads ob-rust ob-rust-autoloads
ob-go ob-go-autoloads org-fancy-priorities-autoloads ox-gfm ox-texinfo
ox-org ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util
rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-md
ox-icalendar ox-html table ox-beamer ox-latex ox-ascii ox-publish ox
ox-gfm-autoloads pretty-hydra 2048-game-autoloads speed-type-autoloads
dashboard dashboard-widgets recentf tree-widget dashboard-autoloads
page-break-lines page-break-lines-autoloads flycheck-autoloads diredc
autorevert filenotify view term disp-table shell ehelp
all-the-icons-dired dired-filter f thingatpt dired-hacks-utils dired-aux
dired-x dired-filter-autoloads dired-collapse-autoloads
dired-subtree-autoloads dired-hacks-utils-autoloads origami-autoloads
move-text-autoloads dimmer face-remap dimmer-autoloads beacon
beacon-autoloads delight delight-autoloads diminish diminish-autoloads
color-theme-approximate-autoloads gnuplot-autoloads
company-box-autoloads frame-local-autoloads company-quickhelp pos-tip
company-quickhelp-autoloads pos-tip-autoloads company-try-hard-autoloads
company-web company-css web-completion-data company-web-autoloads
web-completion-data-autoloads el-patch company-statistics
company-statistics-autoloads company-lsp-autoloads lsp-mode-autoloads
markdown-mode-autoloads company-oddmuse company-keywords company-etags
etags fileloop company-gtags company-dabbrev-code company-dabbrev
company-files company-clang company-capf company-cmake company-semantic
company-template company-bbdb company hl-block-mode-autoloads
rainbow-delimiters-autoloads smex ido smex-autoloads
helm-swoop-autoloads helm-projectile-autoloads projectile-autoloads
pkg-info-autoloads epl-autoloads helm-git-grep-autoloads
helm-org-autoloads helm-ag-autoloads helm-bibtex-autoloads
bibtex-completion-autoloads biblio-autoloads biblio-core-autoloads
parsebib-autoloads helm-config helm async-bytecomp helm-global-bindings
helm-easymenu helm-source helm-multi-match helm-lib async helm-autoloads
helm-core-autoloads popup-autoloads async-autoloads
ace-jump-mode-autoloads ace-window-autoloads avy-autoloads keyfreq
keyfreq-autoloads hl-line display-line-numbers dash-at-point-autoloads
nec-osx paradox paradox-menu paradox-commit-list cus-edit
paradox-execute paradox-github paradox-core spinner paradox-autoloads
spinner-autoloads let-alist-autoloads shrink-path-autoloads
ssh-autoloads disk-usage-autoloads edmacro kmacro crux-autoloads
use-package-bind-key fira-code-mode fira-code-mode-autoloads
use-package-diminish emacs-emojify-autoloads midnight
sort-words-autoloads aggressive-indent-autoloads
insert-char-preview-autoloads elgantt derived org-ql peg ts s dash
org-habit org-agenda org-element avl-tree generator org-id org-refile
org-clock molar-mass-autoloads chemtable wid-edit
company-wordfreq-autoloads company-autoloads most-used-words
docker-autoloads tablist-autoloads json-mode-autoloads
json-snatcher-autoloads json-reformat-autoloads docker-tramp-autoloads
file-template ctrlf-autoloads use-package-hydra-autoloads
major-mode-hydra-autoloads pretty-hydra-autoloads hydra lv
hydra-autoloads lv-autoloads modus-vivendi-theme modus-operandi-theme
modus-themes svg-icon svg dom xml org-pretty-tags-autoloads
pretty-symbols pretty-symbols-autoloads counsel xdg xref dired
dired-loaddefs compile swiper all-the-icons-ivy-rich project bookmark
text-property-search pp ivy-rich all-the-icons-ivy-rich-autoloads
ivy-rich-autoloads all-the-icons-ivy ivy ivy-faces ivy-overlay colir
color all-the-icons all-the-icons-faces data-material data-weathericons
data-octicons data-fileicons data-faicons data-alltheicons
all-the-icons-ibuffer-autoloads all-the-icons-gnus-autoloads
all-the-icons-ivy-autoloads all-the-icons-dired-autoloads
all-the-icons-autoloads counsel-autoloads swiper-autoloads ivy-autoloads
list-environment-autoloads exec-path-from-shell
exec-path-from-shell-autoloads bookmark+-autoloads comp comp-cstr
warnings bind-key core-lib pcase general general-autoloads xt-mouse
so-long cus-load avoid time delsel setup no-littering-autoloads
finder-inf package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap
url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs
password-cache url-vars key-chord-autoloads magit-section-autoloads
emacsql-sqlite-autoloads emacsql-autoloads org-ql-autoloads
transient-autoloads org-super-agenda-autoloads map-autoloads
peg-autoloads ts-autoloads ht-autoloads ov-autoloads org ob ob-tangle
ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint
org-pcomplete pcomplete comint ansi-color ring org-list org-faces
org-entities noutline outline easy-mmode org-version ob-emacs-lisp
ob-core ob-eval org-table oc-basic json map bibtex iso8601 time-date ol
rx org-keys oc org-compat advice org-macs org-loaddefs format-spec
find-func cal-menu calendar cal-loaddefs git-autoloads f-autoloads
dash-autoloads s-autoloads early-init use-package-delight
use-package-core el-patch-autoloads use-package-autoloads
bind-key-autoloads straight-autoloads cl-seq info cl-extra help-mode seq
byte-opt straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp
byte-compile cconv iso-transl tooltip eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads xwidget-internal dbusbind
kqueue cocoa ns lcms2 multi-tty make-network-process native-compile
emacs)

Memory information:
((conses 16 2321356 579651)
(symbols 48 64044 312)
(strings 32 298233 67722)
(string-bytes 1 10782662)
(vectors 16 156144)
(vector-slots 8 4840485 1962118)
(floats 8 4828 1294)
(intervals 56 100375 9555)
(buffers 992 52))


 <applewebdata://F7D7DB9F-DE26-4A04-AD05-F2D4088EF3BB>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
 <tel:+45 4052 2789>+45 4052 2789niels@algon.dk <mailto:niels@algon.dk>
Ultra posse nemo obligatur.


[-- Attachment #2: Type: text/html, Size: 42825 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-21 15:24 bug#51321: 29.0.50; date in modelines Niels Søndergaard
@ 2021-10-21 17:00 ` Eli Zaretskii
  2021-10-21 18:09   ` Niels Søndergaard
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-21 17:00 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: 51321

> From: Niels Søndergaard <nisoni@algon.dk>
> Date: Thu, 21 Oct 2021 17:24:46 +0200
> 
> Using time in the mode or tab line can't be changed to European format
> (as far as I can see), the date in Europe is normally
> "weekday day month year hour:minutes" or in short "wkd, dd MMM yy HH:MM"

Please tell how did you try to change the format to the European
style.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-21 17:00 ` Eli Zaretskii
@ 2021-10-21 18:09   ` Niels Søndergaard
  2021-10-21 18:13     ` Niels Søndergaard
  2021-10-21 18:18     ` Eli Zaretskii
  0 siblings, 2 replies; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-21 18:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Niels Søndergaard, 51321

Actually I can´t figure put, ejere to look for it. I even tried to look in the source, but it just confused me. I´ve looked in most of the documentation without luck…
Niels

Sendt fra min iPad

> Den 21. okt. 2021 kl. 19.05 skrev Eli Zaretskii <eliz@gnu.org>:
> 
> 
>> 
>> From: Niels Søndergaard <nisoni@algon.dk>
>> Date: Thu, 21 Oct 2021 17:24:46 +0200
>> 
>> Using time in the mode or tab line can't be changed to European format
>> (as far as I can see), the date in Europe is normally
>> "weekday day month year hour:minutes" or in short "wkd, dd MMM yy HH:MM"
> 
> Please tell how did you try to change the format to the European
> style.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-21 18:09   ` Niels Søndergaard
@ 2021-10-21 18:13     ` Niels Søndergaard
  2021-10-21 18:18     ` Eli Zaretskii
  1 sibling, 0 replies; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-21 18:13 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: 51321

Sorry for my Spell checker, it thinks the english is weird language, and try to help me…

Sendt fra min iPad

> Den 21. okt. 2021 kl. 20.09 skrev Niels Søndergaard <nisoni@algon.dk>:
> 
> Actually I can´t figure put, ejere to look for it. I even tried to look in the source, but it just confused me. I´ve looked in most of the documentation without luck…
> Niels
> 
> Sendt fra min iPad
> 
>> Den 21. okt. 2021 kl. 19.05 skrev Eli Zaretskii <eliz@gnu.org>:
>> 
>> 
>>> 
>>> From: Niels Søndergaard <nisoni@algon.dk>
>>> Date: Thu, 21 Oct 2021 17:24:46 +0200
>>> 
>>> Using time in the mode or tab line can't be changed to European format
>>> (as far as I can see), the date in Europe is normally
>>> "weekday day month year hour:minutes" or in short "wkd, dd MMM yy HH:MM"
>> 
>> Please tell how did you try to change the format to the European
>> style.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-21 18:09   ` Niels Søndergaard
  2021-10-21 18:13     ` Niels Søndergaard
@ 2021-10-21 18:18     ` Eli Zaretskii
  2021-10-22  1:37       ` Niels Søndergaard
  1 sibling, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-21 18:18 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: 51321

> From: Niels Søndergaard <nisoni@algon.dk>
> Date: Thu, 21 Oct 2021 20:09:13 +0200
> Cc: Niels Søndergaard <nisoni@algon.dk>,
>  51321@debbugs.gnu.org
> 
> Actually I can´t figure put, ejere to look for it. I even tried to look in the source, but it just confused me. I´ve looked in most of the documentation without luck…

You are supposed to customize the option display-time-format.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-21 18:18     ` Eli Zaretskii
@ 2021-10-22  1:37       ` Niels Søndergaard
  2021-10-22  6:34         ` Eli Zaretskii
  2021-10-22 14:40         ` Lars Ingebrigtsen
  0 siblings, 2 replies; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-22  1:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Niels Søndergaard, 51321

[-- Attachment #1: Type: text/plain, Size: 938 bytes --]

I do, but it is still in English , like

 
It should be “Fre. 22. Okt 2021 - 03:20”


%c gives: 
Which is not the locale's date and time format


I did set danish translations for calendar stuff, as you can see



mvh
Niels


 <applewebdata://1DA245BD-24F1-4C64-91AD-483E748BB9CF>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
 <tel:+45 4052 2789>+45 4052 2789niels@algon.dk <mailto:niels@algon.dk>
Ultra posse nemo obligatur.

> Den 21. okt. 2021 kl. 20.18 skrev Eli Zaretskii <eliz@gnu.org>:
> 
>> From: Niels Søndergaard <nisoni@algon.dk>
>> Date: Thu, 21 Oct 2021 20:09:13 +0200
>> Cc: Niels Søndergaard <nisoni@algon.dk>,
>> 51321@debbugs.gnu.org
>> 
>> Actually I can´t figure put, ejere to look for it. I even tried to look in the source, but it just confused me. I´ve looked in most of the documentation without luck…
> 
> You are supposed to customize the option display-time-format.


[-- Attachment #2.1: Type: text/html, Size: 11727 bytes --]

[-- Attachment #2.2: Skærmbillede 2021-10-22 kl. 03.20.31.png --]
[-- Type: image/png, Size: 28712 bytes --]

[-- Attachment #2.3: Skærmbillede 2021-10-22 kl. 03.29.35.png --]
[-- Type: image/png, Size: 25412 bytes --]

[-- Attachment #2.4: Skærmbillede 2021-10-22 kl. 03.36.22.png --]
[-- Type: image/png, Size: 306602 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-22  1:37       ` Niels Søndergaard
@ 2021-10-22  6:34         ` Eli Zaretskii
  2021-10-22 13:27           ` Niels Søndergaard
  2021-10-22 14:40         ` Lars Ingebrigtsen
  1 sibling, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-22  6:34 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: 51321

> From: Niels Søndergaard <nisoni@algon.dk>
> Date: Fri, 22 Oct 2021 03:37:18 +0200
> Cc: Niels Søndergaard <nisoni@algon.dk>,
>  51321@debbugs.gnu.org
> 
> %c gives: 
> Which is not the locale's date and time format

And if you use %b and %a, does that yield the locale-specific names?

And what are your locale settings outside Emacs?





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-22  6:34         ` Eli Zaretskii
@ 2021-10-22 13:27           ` Niels Søndergaard
  2021-10-22 14:11             ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-22 13:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Niels Søndergaard, 51321

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

HI,

It’s correct that my format string use %a and %b, but the does NOT that yield the locale-specific names, but English names

This is the locale setting on my iMAC 24”, it’s in Danish, but I guess that it’s can be understood

 <applewebdata://2ACAC91B-EE56-40B4-B745-185FB60D5750>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
 <tel:+45 4052 2789>+45 4052 2789niels@algon.dk <mailto:niels@algon.dk>
Ultra posse nemo obligatur.

> Den 22. okt. 2021 kl. 08.34 skrev Eli Zaretskii <eliz@gnu.org>:
> 
>> From: Niels Søndergaard <nisoni@algon.dk>
>> Date: Fri, 22 Oct 2021 03:37:18 +0200
>> Cc: Niels Søndergaard <nisoni@algon.dk>,
>> 51321@debbugs.gnu.org
>> 
>> %c gives: 
>> Which is not the locale's date and time format
> 
> And if you use %b and %a, does that yield the locale-specific names?
> 
> And what are your locale settings outside Emacs?


[-- Attachment #2.1: Type: text/html, Size: 10191 bytes --]

[-- Attachment #2.2: Skærmbillede 2021-10-22 kl. 15.12.38.png --]
[-- Type: image/png, Size: 327410 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-22 13:27           ` Niels Søndergaard
@ 2021-10-22 14:11             ` Eli Zaretskii
  2021-10-23 12:16               ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-22 14:11 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: 51321

> From: Niels Søndergaard <nisoni@algon.dk>
> Date: Fri, 22 Oct 2021 15:27:39 +0200
> Cc: Niels Søndergaard <nisoni@algon.dk>,
>  51321@debbugs.gnu.org
> 
> It’s correct that my format string use %a and %b, but the does NOT that yield the locale-specific names, but English names
> 
> This is the locale setting on my iMAC 24”, it’s in Danish, but I guess that it’s can be understood

I don't know what this means in terms of LC_* locale settings that
Emacs sees.  can some macOS expert please chime in and help me
understand where is the problem here?





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-22  1:37       ` Niels Søndergaard
  2021-10-22  6:34         ` Eli Zaretskii
@ 2021-10-22 14:40         ` Lars Ingebrigtsen
  1 sibling, 0 replies; 36+ messages in thread
From: Lars Ingebrigtsen @ 2021-10-22 14:40 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: 51321

Niels Søndergaard <nisoni@algon.dk> writes:

> I do, but it is still in English , like

What is the value of your `display-time-format' variable?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-22 14:11             ` Eli Zaretskii
@ 2021-10-23 12:16               ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 12:23                 ` Eli Zaretskii
  2021-10-23 12:34                 ` Niels Søndergaard
  0 siblings, 2 replies; 36+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23 12:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Niels Søndergaard, 51321

Eli Zaretskii <eliz@gnu.org> writes:

>
> I don't know what this means in terms of LC_* locale settings that
> Emacs sees.  can some macOS expert please chime in and help me
> understand where is the problem here?

It depends on how you start Emacs.  The common case on macOS is that
people start Emacs from the GUI, and in that case the OS doesn't
configure the locale environment variables.  What the NS port does is it
uses the OS API to get the locale and applies the environment variables
manually (see ns_init_locale in nsterm.m).

I see that ns_init_locale only sets LANG, which seems insufficient for
this use case.  Perhaps we need to extend ns_init_locale to set other
LC_ variables as well (LC_TIME is the key here).

A workaround for now without modifying Emacs (it may be useful for the
OP) is to evaluate the following ELisp form:

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

If I'm not mistaken, this would make display-local-time print Danish
dates when the date format is %c, %a, etc.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 12:16               ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-23 12:23                 ` Eli Zaretskii
  2021-10-23 12:52                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 12:34                 ` Niels Søndergaard
  1 sibling, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-23 12:23 UTC (permalink / raw)
  To: Daniel Martín; +Cc: nisoni, 51321

> From: Daniel Martín <mardani29@yahoo.es>
> Cc: Niels Søndergaard <nisoni@algon.dk>,
>   51321@debbugs.gnu.org
> Date: Sat, 23 Oct 2021 14:16:28 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >
> > I don't know what this means in terms of LC_* locale settings that
> > Emacs sees.  can some macOS expert please chime in and help me
> > understand where is the problem here?
> 
> It depends on how you start Emacs.  The common case on macOS is that
> people start Emacs from the GUI, and in that case the OS doesn't
> configure the locale environment variables.  What the NS port does is it
> uses the OS API to get the locale and applies the environment variables
> manually (see ns_init_locale in nsterm.m).

Thanks, I think that explains the issue.

> I see that ns_init_locale only sets LANG, which seems insufficient for
> this use case.  Perhaps we need to extend ns_init_locale to set other
> LC_ variables as well (LC_TIME is the key here).

Why not LC_ALL?





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 12:16               ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 12:23                 ` Eli Zaretskii
@ 2021-10-23 12:34                 ` Niels Søndergaard
  2021-10-23 12:55                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-23 12:34 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Niels Søndergaard, 51321

[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]

Dear Daniel,
I’m starting emacs from the GUI in /Applications, even if it’s in a terminal.

You’re not mistaken, the Lisp form gives me the danish version.

So my problem is solved and my case can be closed
Thanks

mvh
Niels
 <applewebdata://7A379128-D1A9-4307-9EB8-DF9851E78710>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
 <tel:+45 4052 2789>+45 4052 2789niels@algon.dk <mailto:niels@algon.dk>
Ultra posse nemo obligatur.

> Den 23. okt. 2021 kl. 14.16 skrev Daniel Martín <mardani29@yahoo.es>:
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
>> 
>> I don't know what this means in terms of LC_* locale settings that
>> Emacs sees.  can some macOS expert please chime in and help me
>> understand where is the problem here?
> 
> It depends on how you start Emacs.  The common case on macOS is that
> people start Emacs from the GUI, and in that case the OS doesn't
> configure the locale environment variables.  What the NS port does is it
> uses the OS API to get the locale and applies the environment variables
> manually (see ns_init_locale in nsterm.m).
> 
> I see that ns_init_locale only sets LANG, which seems insufficient for
> this use case.  Perhaps we need to extend ns_init_locale to set other
> LC_ variables as well (LC_TIME is the key here).
> 
> A workaround for now without modifying Emacs (it may be useful for the
> OP) is to evaluate the following ELisp form:
> 
> (setq system-time-locale "da_DK.UTF-8")
> 
> If I'm not mistaken, this would make display-local-time print Danish
> dates when the date format is %c, %a, etc.


[-- Attachment #2: Type: text/html, Size: 10889 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 12:23                 ` Eli Zaretskii
@ 2021-10-23 12:52                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 16:00                     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 36+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23 12:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: nisoni, 51321

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> 
>> It depends on how you start Emacs.  The common case on macOS is that
>> people start Emacs from the GUI, and in that case the OS doesn't
>> configure the locale environment variables.  What the NS port does is it
>> uses the OS API to get the locale and applies the environment variables
>> manually (see ns_init_locale in nsterm.m).
>
> Thanks, I think that explains the issue.
>
>> I see that ns_init_locale only sets LANG, which seems insufficient for
>> this use case.  Perhaps we need to extend ns_init_locale to set other
>> LC_ variables as well (LC_TIME is the key here).
>
> Why not LC_ALL?

Yes, after consulting the POSIX spec, I think setting LC_ALL is the
right thing to do.

I've attached a patch that solves the issue.  If you think it's a good
idea, please install it for me.  Thanks.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Set-LC_ALL-to-the-current-locale-in-the-NS-port.patch --]
[-- Type: text/x-patch, Size: 1126 bytes --]

From 472bcdb74139ae53c0c224262c072c462a6f243d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Sat, 23 Oct 2021 14:44:31 +0200
Subject: [PATCH] Set LC_ALL to the current locale in the NS port

* src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the
current locale ID so that dates, currencies, etc. use the settings
configured in the operating system.  (Bug#51321)
---
 src/nsterm.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index aa29c13eb2..e27a025035 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -543,8 +543,10 @@ - (NSColor *)colorUsingDefaultColorSpace
       NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8",
                                      [locale localeIdentifier]];
 
-      /* Set LANG to locale, but not if LANG is already set.  */
+      /* Set LANG and LC_ALL to locale, but not if the variables are
+         already set.  */
       setenv("LANG", [localeID UTF8String], 0);
+      setenv("LC_ALL", [localeID UT8String], 0);
     }
   @catch (NSException *e)
     {
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 12:34                 ` Niels Søndergaard
@ 2021-10-23 12:55                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 12:58                     ` Niels Søndergaard
  0 siblings, 1 reply; 36+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23 12:55 UTC (permalink / raw)
  To: Niels Søndergaard; +Cc: Eli Zaretskii, 51321

Niels Søndergaard <nisoni@algon.dk> writes:

> Dear Daniel,
> I’m starting emacs from the GUI in /Applications, even if it’s in a terminal.
>
> You’re not mistaken, the Lisp form gives me the danish version.
>
> So my problem is solved and my case can be closed
> Thanks

Thanks for confirming that the workaround is working for you.  We'll try
to make Emacs detect and apply the locale automatically on macOS so that
you don't need to set it manually.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 12:55                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-23 12:58                     ` Niels Søndergaard
  0 siblings, 0 replies; 36+ messages in thread
From: Niels Søndergaard @ 2021-10-23 12:58 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Niels Søndergaard, 51321

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

Thats OK,
I’m glad to contribute with what I can.
mvh
Niels
 <applewebdata://B18FDD14-0AC8-4935-8FF5-51F692D204A7>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
 <tel:+45 4052 2789>+45 4052 2789niels@algon.dk <mailto:niels@algon.dk>
Ultra posse nemo obligatur.

> Den 23. okt. 2021 kl. 14.55 skrev Daniel Martín <mardani29@yahoo.es>:
> 
> Niels Søndergaard <nisoni@algon.dk> writes:
> 
>> Dear Daniel,
>> I’m starting emacs from the GUI in /Applications, even if it’s in a terminal.
>> 
>> You’re not mistaken, the Lisp form gives me the danish version.
>> 
>> So my problem is solved and my case can be closed
>> Thanks
> 
> Thanks for confirming that the workaround is working for you.  We'll try
> to make Emacs detect and apply the locale automatically on macOS so that
> you don't need to set it manually.


[-- Attachment #2: Type: text/html, Size: 9866 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 12:52                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-23 16:00                     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-30 15:41                       ` Stefan Kangas
  0 siblings, 1 reply; 36+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23 16:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: nisoni, 51321

[-- Attachment #1: Type: text/plain, Size: 310 bytes --]

Daniel Martín via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

>
> I've attached a patch that solves the issue.  If you think it's a good
> idea, please install it for me.  Thanks.

Sorry, there was a small mistake.  I attach a corrected patch.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Set-LC_ALL-to-the-current-locale-in-the-NS-port.patch --]
[-- Type: text/x-patch, Size: 1127 bytes --]

From c27c60d344da64dac42c452e3a3aa7c35522a007 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Sat, 23 Oct 2021 14:44:31 +0200
Subject: [PATCH] Set LC_ALL to the current locale in the NS port

* src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the
current locale ID so that dates, currencies, etc. use the settings
configured in the operating system.  (Bug#51321)
---
 src/nsterm.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index aa29c13eb2..19ed750d21 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -543,8 +543,10 @@ - (NSColor *)colorUsingDefaultColorSpace
       NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8",
                                      [locale localeIdentifier]];
 
-      /* Set LANG to locale, but not if LANG is already set.  */
+      /* Set LANG and LC_ALL to locale, but not if the variables are
+         already set.  */
       setenv("LANG", [localeID UTF8String], 0);
+      setenv("LC_ALL", [localeID UTF8String], 0);
     }
   @catch (NSException *e)
     {
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-23 16:00                     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-30 15:41                       ` Stefan Kangas
  2021-10-30 18:09                         ` Alan Third
  0 siblings, 1 reply; 36+ messages in thread
From: Stefan Kangas @ 2021-10-30 15:41 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Lars Ingebrigtsen, nisoni, Alan Third, 51321

Daniel Martín <mardani29@yahoo.es> writes:

>> I've attached a patch that solves the issue.  If you think it's a good
>> idea, please install it for me.  Thanks.

This patch LGTM.  I think it should be safe for emacs-28, and I've
copied in Alan Third so that he can hopefully take a look.

>>From c27c60d344da64dac42c452e3a3aa7c35522a007 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
> Date: Sat, 23 Oct 2021 14:44:31 +0200
> Subject: [PATCH] Set LC_ALL to the current locale in the NS port
>
> * src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the
> current locale ID so that dates, currencies, etc. use the settings
> configured in the operating system.  (Bug#51321)
> ---
>  src/nsterm.m | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/nsterm.m b/src/nsterm.m
> index aa29c13eb2..19ed750d21 100644
> --- a/src/nsterm.m
> +++ b/src/nsterm.m
> @@ -543,8 +543,10 @@ - (NSColor *)colorUsingDefaultColorSpace
>        NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8",
>                                       [locale localeIdentifier]];
>
> -      /* Set LANG to locale, but not if LANG is already set.  */
> +      /* Set LANG and LC_ALL to locale, but not if the variables are
> +         already set.  */
>        setenv("LANG", [localeID UTF8String], 0);
> +      setenv("LC_ALL", [localeID UTF8String], 0);
>      }
>    @catch (NSException *e)
>      {





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-30 15:41                       ` Stefan Kangas
@ 2021-10-30 18:09                         ` Alan Third
  2021-10-31  9:06                           ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: Alan Third @ 2021-10-30 18:09 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Lars Ingebrigtsen, nisoni, 51321, Daniel Martín

On Sat, Oct 30, 2021 at 08:41:00AM -0700, Stefan Kangas wrote:
> Daniel Martín <mardani29@yahoo.es> writes:
> 
> >> I've attached a patch that solves the issue.  If you think it's a good
> >> idea, please install it for me.  Thanks.
> 
> This patch LGTM.  I think it should be safe for emacs-28, and I've
> copied in Alan Third so that he can hopefully take a look.

IIRC there was some concern when we made this change that there might
have been confusion caused by it, but afaict we've never had any
problems. Therefore I don't think there's any good reason not to
extend it this way.

That was a long way of saying looks good to me.
-- 
Alan Third





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-30 18:09                         ` Alan Third
@ 2021-10-31  9:06                           ` Eli Zaretskii
  2021-10-31 10:14                             ` Alan Third
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-31  9:06 UTC (permalink / raw)
  To: Alan Third; +Cc: larsi, nisoni, stefan, 51321, mardani29

> Date: Sat, 30 Oct 2021 19:09:51 +0100
> From: Alan Third <alan@idiocy.org>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, nisoni@algon.dk, 51321@debbugs.gnu.org,
> IIRC there was some concern when we made this change that there might
> have been confusion caused by it, but afaict we've never had any
> problems. Therefore I don't think there's any good reason not to
> extend it this way.
> 
> That was a long way of saying looks good to me.

Thanks.  On which branch would you recommend to install this?





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-31  9:06                           ` Eli Zaretskii
@ 2021-10-31 10:14                             ` Alan Third
  2021-10-31 13:01                               ` Eli Zaretskii
  2021-11-01 13:04                               ` Filipp Gunbin
  0 siblings, 2 replies; 36+ messages in thread
From: Alan Third @ 2021-10-31 10:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, nisoni, stefan, 51321, mardani29

On Sun, Oct 31, 2021 at 11:06:37AM +0200, Eli Zaretskii wrote:
> > Date: Sat, 30 Oct 2021 19:09:51 +0100
> > From: Alan Third <alan@idiocy.org>
> > Cc: Lars Ingebrigtsen <larsi@gnus.org>, nisoni@algon.dk, 51321@debbugs.gnu.org,
> > IIRC there was some concern when we made this change that there might
> > have been confusion caused by it, but afaict we've never had any
> > problems. Therefore I don't think there's any good reason not to
> > extend it this way.
> > 
> > That was a long way of saying looks good to me.
> 
> Thanks.  On which branch would you recommend to install this?

I think it's safe, so I'd suggest we put it in emacs-28.

-- 
Alan Third





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-31 10:14                             ` Alan Third
@ 2021-10-31 13:01                               ` Eli Zaretskii
  2021-11-01 13:04                               ` Filipp Gunbin
  1 sibling, 0 replies; 36+ messages in thread
From: Eli Zaretskii @ 2021-10-31 13:01 UTC (permalink / raw)
  To: Alan Third; +Cc: larsi, nisoni, stefan, 51321-done, mardani29

> Date: Sun, 31 Oct 2021 10:14:32 +0000
> From: Alan Third <alan@idiocy.org>
> Cc: larsi@gnus.org, nisoni@algon.dk, stefan@marxist.se,
> 	51321@debbugs.gnu.org, mardani29@yahoo.es
> 
> > > That was a long way of saying looks good to me.
> > 
> > Thanks.  On which branch would you recommend to install this?
> 
> I think it's safe, so I'd suggest we put it in emacs-28.

Done, and closing the bug report.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-10-31 10:14                             ` Alan Third
  2021-10-31 13:01                               ` Eli Zaretskii
@ 2021-11-01 13:04                               ` Filipp Gunbin
  2021-11-01 13:33                                 ` Eli Zaretskii
  1 sibling, 1 reply; 36+ messages in thread
From: Filipp Gunbin @ 2021-11-01 13:04 UTC (permalink / raw)
  To: Alan Third; +Cc: nisoni, stefan, 51321, mardani29, larsi

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

On 31/10/2021 10:14 +0000, Alan Third wrote:

> On Sun, Oct 31, 2021 at 11:06:37AM +0200, Eli Zaretskii wrote:
>> > Date: Sat, 30 Oct 2021 19:09:51 +0100
>> > From: Alan Third <alan@idiocy.org>
>> > Cc: Lars Ingebrigtsen <larsi@gnus.org>, nisoni@algon.dk, 51321@debbugs.gnu.org,
>> > IIRC there was some concern when we made this change that there might
>> > have been confusion caused by it, but afaict we've never had any
>> > problems. Therefore I don't think there's any good reason not to
>> > extend it this way.
>> > 
>> > That was a long way of saying looks good to me.
>> 
>> Thanks.  On which branch would you recommend to install this?
>
> I think it's safe, so I'd suggest we put it in emacs-28.

In my setup with Engish as preferred language and Russia as region
(attaching a screenshot from System Preferences), I'm getting this
warning:

/opt/local/bin/bash: warning: setlocale: LC_ALL: cannot change locale
(en_RU.UTF-8): No such file or directory

because LC_ALL is now being set to en_RU.UTF-8 (LANG is set explicitly
to ru_RU.UTF-8 in my .bash_profile and is thus untouched by Emacs).

So maybe we should check that the locale is valid before setting it...

Filipp


[-- Attachment #2: Screenshot 2021-11-01 at 15.58.08.png --]
[-- Type: image/png, Size: 189465 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 13:04                               ` Filipp Gunbin
@ 2021-11-01 13:33                                 ` Eli Zaretskii
  2021-11-01 14:21                                   ` Filipp Gunbin
  0 siblings, 1 reply; 36+ messages in thread
From: Eli Zaretskii @ 2021-11-01 13:33 UTC (permalink / raw)
  To: Filipp Gunbin; +Cc: alan, nisoni, stefan, 51321, mardani29, larsi

> From: Filipp Gunbin <fgunbin@fastmail.fm>
> Cc: Eli Zaretskii <eliz@gnu.org>,  larsi@gnus.org,  nisoni@algon.dk,
>   stefan@marxist.se,  51321@debbugs.gnu.org,  mardani29@yahoo.es
> Date: Mon, 01 Nov 2021 16:04:09 +0300
> 
> In my setup with Engish as preferred language and Russia as region
> (attaching a screenshot from System Preferences), I'm getting this
> warning:
> 
> /opt/local/bin/bash: warning: setlocale: LC_ALL: cannot change locale
> (en_RU.UTF-8): No such file or directory
> 
> because LC_ALL is now being set to en_RU.UTF-8 (LANG is set explicitly
> to ru_RU.UTF-8 in my .bash_profile and is thus untouched by Emacs).
> 
> So maybe we should check that the locale is valid before setting it...

"Valid" in what sense?  Is that locale not installed on your system,
or are you saying that it cannot exist?

(And why does the warning come from Bash when it was Emacs who sets
the locale?)





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 13:33                                 ` Eli Zaretskii
@ 2021-11-01 14:21                                   ` Filipp Gunbin
  2021-11-01 14:34                                     ` Eli Zaretskii
  0 siblings, 1 reply; 36+ messages in thread
From: Filipp Gunbin @ 2021-11-01 14:21 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: alan, nisoni, stefan, 51321, mardani29, larsi

On 01/11/2021 15:33 +0200, Eli Zaretskii wrote:

>> From: Filipp Gunbin <fgunbin@fastmail.fm>
>> Cc: Eli Zaretskii <eliz@gnu.org>,  larsi@gnus.org,  nisoni@algon.dk,
>>   stefan@marxist.se,  51321@debbugs.gnu.org,  mardani29@yahoo.es
>> Date: Mon, 01 Nov 2021 16:04:09 +0300
>>
>> In my setup with Engish as preferred language and Russia as region
>> (attaching a screenshot from System Preferences), I'm getting this
>> warning:
>>
>> /opt/local/bin/bash: warning: setlocale: LC_ALL: cannot change locale
>> (en_RU.UTF-8): No such file or directory
>>
>> because LC_ALL is now being set to en_RU.UTF-8 (LANG is set explicitly
>> to ru_RU.UTF-8 in my .bash_profile and is thus untouched by Emacs).
>>
>> So maybe we should check that the locale is valid before setting it...
>
> "Valid" in what sense?  Is that locale not installed on your system,
> or are you saying that it cannot exist?

I think in the sense of 'locale -a | grep ru' in this case:

ru_RU.ISO8859-5
ru_RU.CP866
ru_RU.CP1251
ru_RU.UTF-8
ru_RU.KOI8-R
ru_RU

Maybe it could exist, but it doesn't on macOS.

> (And why does the warning come from Bash when it was Emacs who sets
> the locale?)

Forgot to tell - this output shows up when running shell command from
emacs (M-! or similar).

Filipp





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 14:21                                   ` Filipp Gunbin
@ 2021-11-01 14:34                                     ` Eli Zaretskii
  2021-11-01 14:45                                       ` Filipp Gunbin
  2021-11-01 21:17                                       ` Alan Third
  0 siblings, 2 replies; 36+ messages in thread
From: Eli Zaretskii @ 2021-11-01 14:34 UTC (permalink / raw)
  To: Filipp Gunbin; +Cc: alan, nisoni, stefan, 51321, mardani29, larsi

> From: Filipp Gunbin <fgunbin@fastmail.fm>
> Cc: alan@idiocy.org,  larsi@gnus.org,  nisoni@algon.dk,  stefan@marxist.se,
>   51321@debbugs.gnu.org,  mardani29@yahoo.es
> Date: Mon, 01 Nov 2021 17:21:36 +0300
> 
> >> So maybe we should check that the locale is valid before setting it...
> >
> > "Valid" in what sense?  Is that locale not installed on your system,
> > or are you saying that it cannot exist?
> 
> I think in the sense of 'locale -a | grep ru' in this case:
> 
> ru_RU.ISO8859-5
> ru_RU.CP866
> ru_RU.CP1251
> ru_RU.UTF-8
> ru_RU.KOI8-R
> ru_RU
> 
> Maybe it could exist, but it doesn't on macOS.
> 
> > (And why does the warning come from Bash when it was Emacs who sets
> > the locale?)
> 
> Forgot to tell - this output shows up when running shell command from
> emacs (M-! or similar).

Hmm... actually, why do we call setenv instead of calling setlocale
directly?  Doesn't macOS support setlocale?  AFAIU, calling setlocale
would then only affect Emacs itself, not its sub-processes.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 14:34                                     ` Eli Zaretskii
@ 2021-11-01 14:45                                       ` Filipp Gunbin
  2021-11-01 21:17                                       ` Alan Third
  1 sibling, 0 replies; 36+ messages in thread
From: Filipp Gunbin @ 2021-11-01 14:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: alan, nisoni, stefan, 51321, mardani29, larsi

On 01/11/2021 16:34 +0200, Eli Zaretskii wrote:

>> From: Filipp Gunbin <fgunbin@fastmail.fm>
>> Cc: alan@idiocy.org,  larsi@gnus.org,  nisoni@algon.dk,  stefan@marxist.se,
>>   51321@debbugs.gnu.org,  mardani29@yahoo.es
>> Date: Mon, 01 Nov 2021 17:21:36 +0300
>>
>> >> So maybe we should check that the locale is valid before setting it...
>> >
>> > "Valid" in what sense?  Is that locale not installed on your system,
>> > or are you saying that it cannot exist?
>>
>> I think in the sense of 'locale -a | grep ru' in this case:
>>
>> ru_RU.ISO8859-5
>> ru_RU.CP866
>> ru_RU.CP1251
>> ru_RU.UTF-8
>> ru_RU.KOI8-R
>> ru_RU
>>
>> Maybe it could exist, but it doesn't on macOS.
>>
>> > (And why does the warning come from Bash when it was Emacs who sets
>> > the locale?)
>>
>> Forgot to tell - this output shows up when running shell command from
>> emacs (M-! or similar).
>
> Hmm... actually, why do we call setenv instead of calling setlocale
> directly?  Doesn't macOS support setlocale?  AFAIU, calling setlocale
> would then only affect Emacs itself, not its sub-processes.

Darwin seems to support setlocale..





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 14:34                                     ` Eli Zaretskii
  2021-11-01 14:45                                       ` Filipp Gunbin
@ 2021-11-01 21:17                                       ` Alan Third
  2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-11-02  1:10                                         ` Filipp Gunbin
  1 sibling, 2 replies; 36+ messages in thread
From: Alan Third @ 2021-11-01 21:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: nisoni, stefan, 51321, mardani29, larsi, Filipp Gunbin

On Mon, Nov 01, 2021 at 04:34:58PM +0200, Eli Zaretskii wrote:
> > From: Filipp Gunbin <fgunbin@fastmail.fm>
> > Cc: alan@idiocy.org,  larsi@gnus.org,  nisoni@algon.dk,  stefan@marxist.se,
> >   51321@debbugs.gnu.org,  mardani29@yahoo.es
> > Date: Mon, 01 Nov 2021 17:21:36 +0300
> > 
> > >> So maybe we should check that the locale is valid before setting it...
> > >
> > > "Valid" in what sense?  Is that locale not installed on your system,
> > > or are you saying that it cannot exist?
> > 
> > I think in the sense of 'locale -a | grep ru' in this case:
> > 
> > ru_RU.ISO8859-5
> > ru_RU.CP866
> > ru_RU.CP1251
> > ru_RU.UTF-8
> > ru_RU.KOI8-R
> > ru_RU
> > 
> > Maybe it could exist, but it doesn't on macOS.
> > 
> > > (And why does the warning come from Bash when it was Emacs who sets
> > > the locale?)
> > 
> > Forgot to tell - this output shows up when running shell command from
> > emacs (M-! or similar).
> 
> Hmm... actually, why do we call setenv instead of calling setlocale
> directly?  Doesn't macOS support setlocale?  AFAIU, calling setlocale
> would then only affect Emacs itself, not its sub-processes.

The point of this is to affect Emacs's sub-processes.

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?

Anyway, I think we can use setlocale to test if the locale string is
valid, but I don't know if there are any other problems with that.
Would we want to reset it after testing?

I suppose it might also be preferable to not even try doing this if
Emacs was run from a terminal since the original problem really only
manifests when Emacs is run from the GUI.

Fillip, can you please try this:

modified   src/nsterm.m
@@ -543,10 +543,13 @@ - (NSColor *)colorUsingDefaultColorSpace
       NSString *localeID = [NSString stringWithFormat:@"%@.UTF-8",
                                      [locale localeIdentifier]];
 
-      /* Set LANG and LC_ALL to locale, but not if the variables are
-         already set.  */
-      setenv("LANG", [localeID UTF8String], 0);
-      setenv("LC_ALL", [localeID UTF8String], 0);
+      if (!isatty (STDIN_FILENO) && setlocale (LC_ALL, [localeID UTF8String]))
+        {
+          /* Set LANG and LC_ALL to locale, but not if the variables are
+             already set.  */
+          setenv("LANG", [localeID UTF8String], 0);
+          setenv("LC_ALL", [localeID UTF8String], 0);
+        }
     }
   @catch (NSException *e)
     {

-- 
Alan Third





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 21:17                                       ` Alan Third
@ 2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-11-02  3:40                                           ` Niels Søndergaard
                                                             ` (2 more replies)
  2021-11-02  1:10                                         ` Filipp Gunbin
  1 sibling, 3 replies; 36+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-11-01 22:17 UTC (permalink / raw)
  To: Alan Third; +Cc: nisoni, stefan, 51321, Eli Zaretskii, Filipp Gunbin, larsi

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=da_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.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 21:17                                       ` Alan Third
  2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-11-02  1:10                                         ` Filipp Gunbin
  1 sibling, 0 replies; 36+ messages in thread
From: Filipp Gunbin @ 2021-11-02  1:10 UTC (permalink / raw)
  To: Alan Third; +Cc: nisoni, stefan, 51321, mardani29, larsi

On 01/11/2021 21:17 +0000, Alan Third wrote:

> On Mon, Nov 01, 2021 at 04:34:58PM +0200, Eli Zaretskii wrote:
>> > From: Filipp Gunbin <fgunbin@fastmail.fm>
>> > Cc: alan@idiocy.org,  larsi@gnus.org,  nisoni@algon.dk,  stefan@marxist.se,
>> >   51321@debbugs.gnu.org,  mardani29@yahoo.es
>> > Date: Mon, 01 Nov 2021 17:21:36 +0300
>> >
>> > >> So maybe we should check that the locale is valid before setting it...
>> > >
>> > > "Valid" in what sense?  Is that locale not installed on your system,
>> > > or are you saying that it cannot exist?
>> >
>> > I think in the sense of 'locale -a | grep ru' in this case:
>> >
>> > ru_RU.ISO8859-5
>> > ru_RU.CP866
>> > ru_RU.CP1251
>> > ru_RU.UTF-8
>> > ru_RU.KOI8-R
>> > ru_RU
>> >
>> > Maybe it could exist, but it doesn't on macOS.
>> >
>> > > (And why does the warning come from Bash when it was Emacs who sets
>> > > the locale?)
>> >
>> > Forgot to tell - this output shows up when running shell command from
>> > emacs (M-! or similar).
>>
>> Hmm... actually, why do we call setenv instead of calling setlocale
>> directly?  Doesn't macOS support setlocale?  AFAIU, calling setlocale
>> would then only affect Emacs itself, not its sub-processes.
>
> The point of this is to affect Emacs's sub-processes.
>
> 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?
>
> Anyway, I think we can use setlocale to test if the locale string is
> valid, but I don't know if there are any other problems with that.
> Would we want to reset it after testing?
>
> I suppose it might also be preferable to not even try doing this if
> Emacs was run from a terminal since the original problem really only
> manifests when Emacs is run from the GUI.
>
> Fillip, can you please try this:
>
[..]

I see Daniel is saying that perhaps his patch should be reverted, so
please let me know if you still want me to test this.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-11-02  3:40                                           ` Niels Søndergaard
  2021-11-02 16:10                                           ` Filipp Gunbin
  2021-11-02 18:22                                           ` Stefan Kangas
  2 siblings, 0 replies; 36+ messages in thread
From: Niels Søndergaard @ 2021-11-02  3:40 UTC (permalink / raw)
  To: Daniel Martín
  Cc: Alan Third, Niels Søndergaard, stefan, 51321, larsi,
	Filipp Gunbin

[-- Attachment #1: Type: text/plain, Size: 3278 bytes --]

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






 <applewebdata://229D5228-5FF5-4558-A35F-BAB0C5093AF6>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
 <tel:+45 4052 2789>+45 4052 2789niels@algon.dk <mailto:niels@algon.dk>
Ultra posse nemo obligatur.

> Den 1. nov. 2021 kl. 23.17 skrev Daniel Martín <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=da_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.


[-- Attachment #2: Type: text/html, Size: 15105 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-11-02  3:40                                           ` Niels Søndergaard
@ 2021-11-02 16:10                                           ` Filipp Gunbin
  2021-11-02 18:22                                           ` Stefan Kangas
  2 siblings, 0 replies; 36+ messages in thread
From: Filipp Gunbin @ 2021-11-02 16:10 UTC (permalink / raw)
  To: Daniel Martín; +Cc: Alan Third, nisoni, stefan, 51321, larsi

On 01/11/2021 23:17 +0100, Daniel Martín wrote:

> 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=da_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.

I found that coreutils date and macOS date differ in behavior:

coreutils:

LANG=ru_RU.UTF-8 LC_ALL= /opt/local/libexec/gnubin/date +%c
Tue Nov  2 18:55:19 2021

macOS:

LANG=ru_RU.UTF-8 LC_ALL= /bin/date +%c
вторник,  2 ноября 2021 г. 18:54:52

Then, I looked at other LC_ variables, from them only LC_CTYPE=UTF-8 is
set (I don't know by whom, it's certainly not in my shell init files)

And if I invoke coreutils date like this:
LANG=ru_RU.UTF-8 LC_ALL= LC_CTYPE= /opt/local/libexec/gnubin/date +%c
вторник,  2 ноября 2021 г. 19:07:29

The output is localized.

So maybe Daniel also has that LC_CTYPE variable set somewhere in macOS,
and is using coreutils date, and that prevents him from getting
localized date as expected.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-11-02  3:40                                           ` Niels Søndergaard
  2021-11-02 16:10                                           ` Filipp Gunbin
@ 2021-11-02 18:22                                           ` Stefan Kangas
  2021-11-09  7:52                                             ` Stefan Kangas
  2 siblings, 1 reply; 36+ messages in thread
From: Stefan Kangas @ 2021-11-02 18:22 UTC (permalink / raw)
  To: Daniel Martín, Alan Third; +Cc: nisoni, Filipp Gunbin, larsi, 51321

reopen 51321
thanks

Daniel Martín <mardani29@yahoo.es> writes:

> You are right.  Setting LANG should be all that is needed and I think my
> patch should be reverted.
[snip]

I agree that it should be reverted, and any further work should take
place on master instead.





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-02 18:22                                           ` Stefan Kangas
@ 2021-11-09  7:52                                             ` Stefan Kangas
  2021-11-09 14:13                                               ` Filipp Gunbin
  0 siblings, 1 reply; 36+ messages in thread
From: Stefan Kangas @ 2021-11-09  7:52 UTC (permalink / raw)
  To: Daniel Martín, Alan Third; +Cc: nisoni, Filipp Gunbin, larsi, 51321

Stefan Kangas <stefan@marxist.se> writes:

> reopen 51321
> thanks
>
> Daniel Martín <mardani29@yahoo.es> writes:
>
>> You are right.  Setting LANG should be all that is needed and I think my
>> patch should be reverted.
> [snip]
>
> I agree that it should be reverted, and any further work should take
> place on master instead.

I have now reverted it on the emacs-28 branch (commit 2782bc113e).





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-09  7:52                                             ` Stefan Kangas
@ 2021-11-09 14:13                                               ` Filipp Gunbin
  2022-09-10  5:09                                                 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 36+ messages in thread
From: Filipp Gunbin @ 2021-11-09 14:13 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Alan Third, nisoni, 51321, Daniel Martín, larsi

On 08/11/2021 23:52 -0800, Stefan Kangas wrote:

> Stefan Kangas <stefan@marxist.se> writes:
>
>> reopen 51321
>> thanks
>>
>> Daniel Martín <mardani29@yahoo.es> writes:
>>
>>> You are right.  Setting LANG should be all that is needed and I think my
>>> patch should be reverted.
>> [snip]
>>
>> I agree that it should be reverted, and any further work should take
>> place on master instead.
>
> I have now reverted it on the emacs-28 branch (commit 2782bc113e).

Thank you!





^ permalink raw reply	[flat|nested] 36+ messages in thread

* bug#51321: 29.0.50; date in modelines
  2021-11-09 14:13                                               ` Filipp Gunbin
@ 2022-09-10  5:09                                                 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 36+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-10  5:09 UTC (permalink / raw)
  To: Filipp Gunbin
  Cc: Alan Third, nisoni, Stefan Kangas, 51321, Daniel Martín,
	Eli Zaretskii

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

If I understand correctly, this problem was fixed by this commit:

commit 058c012f73d4abe014ace44b46c23babd48aebbc
Author:     Alan Third <alan@idiocy.org>
AuthorDate: Sun Nov 14 15:09:43 2021 +0000

    Only set LANG if the ID is valid
    
    * src/nsterm.m (ns_init_locale): Check the provided locale identifier
    is available before trying to use it.

So I'm closing this bug report.  If I misunderstood, please respond to
the debbugs address and we'll reopen.





^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2022-09-10  5:09 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-21 15:24 bug#51321: 29.0.50; date in modelines Niels Søndergaard
2021-10-21 17:00 ` Eli Zaretskii
2021-10-21 18:09   ` Niels Søndergaard
2021-10-21 18:13     ` Niels Søndergaard
2021-10-21 18:18     ` Eli Zaretskii
2021-10-22  1:37       ` Niels Søndergaard
2021-10-22  6:34         ` Eli Zaretskii
2021-10-22 13:27           ` Niels Søndergaard
2021-10-22 14:11             ` Eli Zaretskii
2021-10-23 12:16               ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 12:23                 ` Eli Zaretskii
2021-10-23 12:52                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 16:00                     ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-30 15:41                       ` Stefan Kangas
2021-10-30 18:09                         ` Alan Third
2021-10-31  9:06                           ` Eli Zaretskii
2021-10-31 10:14                             ` Alan Third
2021-10-31 13:01                               ` Eli Zaretskii
2021-11-01 13:04                               ` Filipp Gunbin
2021-11-01 13:33                                 ` Eli Zaretskii
2021-11-01 14:21                                   ` Filipp Gunbin
2021-11-01 14:34                                     ` Eli Zaretskii
2021-11-01 14:45                                       ` Filipp Gunbin
2021-11-01 21:17                                       ` Alan Third
2021-11-01 22:17                                         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-02  3:40                                           ` Niels Søndergaard
2021-11-02 16:10                                           ` Filipp Gunbin
2021-11-02 18:22                                           ` Stefan Kangas
2021-11-09  7:52                                             ` Stefan Kangas
2021-11-09 14:13                                               ` Filipp Gunbin
2022-09-10  5:09                                                 ` Lars Ingebrigtsen
2021-11-02  1:10                                         ` Filipp Gunbin
2021-10-23 12:34                 ` Niels Søndergaard
2021-10-23 12:55                   ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 12:58                     ` Niels Søndergaard
2021-10-22 14:40         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.