GNU bug report logs - #34684
26.1; Strange characters when inserting date

Previous Next

Package: org-mode;

Reported by: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>

Date: Thu, 28 Feb 2019 15:36:03 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34684 in the body.
You can then email your comments to 34684 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34684; Package emacs. (Thu, 28 Feb 2019 15:36:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 28 Feb 2019 15:36:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 26.1; Strange characters when inserting date
Date: Thu, 28 Feb 2019 14:16:25 +0000
[Message part 1 (text/plain, inline)]
When I insert a date by pressing CTRL+C then period then enter I get "<2019-02-28 ¶g¥|>".

I'm not sure what the strange character is (¶g¥|), can someone help?

GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
of 2018-05-30 built on CIRROCUMULUS
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor 'Microsoft Corp.', version 10.0.17763
Recent messages:
blank.org has auto save data; consider M-x recover-this-file
Mark set [2 times]
Auto-saving...
Mark set [3 times]
mwheel-scroll: Beginning of buffer [2 times]
Auto-saving...done
Saving file c:/blank.org...
Wrote c:/blank.org
mwheel-scroll: Beginning of buffer [6 times]
Auto-saving...done

Configured using:
'configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
  value of $LANG: ZHH
  locale-coding-system: cp1252

Major mode: Org

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-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
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail cl-extra help-mode cal-iso
org-agenda cal-move org-rmail org-mhe org-irc org-info org-gnus nnir
gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int
gnus-range message rmc puny seq byte-opt gv bytecomp byte-compile cconv
rfc822 mml mml-sec password-cache epa derived epg epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045
ietf-drums mail-utils mm-util mail-prsvr wid-edit org-docview doc-view
jka-compr image-mode dired dired-loaddefs org-bibtex bibtex org-bbdb
org-w3m org-element cl-seq avl-tree generator org advice org-macro
org-footnote org-pcomplete pcomplete org-list org-faces org-entities
noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle
org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint
ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs
format-spec find-func cal-menu easymenu calendar cal-loaddefs
cl-loaddefs cl-lib elec-pair time-date mule-util china-util tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame 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 charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote w32notify w32 lcms2
multi-tty make-network-process emacs)

Memory information:
((conses 16 203971 25161)
(symbols 56 31648 1)
(miscs 48 150 270)
(strings 32 67063 2749)
(string-bytes 1 2096605)
(vectors 16 27974)
(vector-slots 8 656594 10610)
(floats 8 212 256)
(intervals 56 614 1074)
(buffers 992 16))

[Message part 2 (text/html, inline)]

bug reassigned from package 'emacs' to 'org-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 28 Feb 2019 16:20:01 GMT) Full text and rfc822 format available.

bug No longer marked as found in versions 26.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 28 Feb 2019 16:20:01 GMT) Full text and rfc822 format available.

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Thu, 28 Feb 2019 17:56:02 GMT) Full text and rfc822 format available.

Message #12 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Thu, 28 Feb 2019 19:55:06 +0200
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> Date: Thu, 28 Feb 2019 14:16:25 +0000
> 
> When I insert a date by pressing CTRL+C then period then enter I get “<2019-02-28 ¶g¥|>”.
> 
> I’m not sure what the strange character is (¶g¥|), can someone help?

Please show a complete recipe, starting from "emacs -Q", to reproduce
the issue.  When I type "Ctrl-C ." in "emacs -Q", Emacs says that
sequence is not bound to any command, so I wonder what is needed to
"insert a date" in your scenario.

Thanks.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Thu, 28 Feb 2019 19:12:02 GMT) Full text and rfc822 format available.

Message #15 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Thu, 28 Feb 2019 20:11:45 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
>> Date: Thu, 28 Feb 2019 14:16:25 +0000
>> 
>> When I insert a date by pressing CTRL+C then period then enter I get “<2019-02-28 ¶g¥|>”.
>> 
>> I’m not sure what the strange character is (¶g¥|), can someone help?
>
> Please show a complete recipe, starting from "emacs -Q", to reproduce
> the issue.  When I type "Ctrl-C ." in "emacs -Q", Emacs says that
> sequence is not bound to any command, so I wonder what is needed to
> "insert a date" in your scenario.

From the output, this is 'org-time-stamp', which produces
<2019-02-28 Thu> here. Based on this in the report:

    Important settings:
      value of $LANG: ZHH
      locale-coding-system: cp1252

Iʼm assuming thereʼs an issue with buffer-file-coding-system or
similar. If I do

LANG=zh_HK src/emacs -Q
(require 'org)
(org-time-stamp) => <2019-02-28 四>

where that character after the date is CJK IDEOGRAPH-56DB

(and now Iʼve exhausted what I know about Asian characters)

Robert




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Thu, 28 Feb 2019 19:57:02 GMT) Full text and rfc822 format available.

Message #18 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Thu, 28 Feb 2019 21:56:13 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>,  34684 <at> debbugs.gnu.org
> Date: Thu, 28 Feb 2019 20:11:45 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> >> Date: Thu, 28 Feb 2019 14:16:25 +0000
> >> 
> >> When I insert a date by pressing CTRL+C then period then enter I get “<2019-02-28 ¶g¥|>”.
> >> 
> >> I’m not sure what the strange character is (¶g¥|), can someone help?
> >
> > Please show a complete recipe, starting from "emacs -Q", to reproduce
> > the issue.  When I type "Ctrl-C ." in "emacs -Q", Emacs says that
> > sequence is not bound to any command, so I wonder what is needed to
> > "insert a date" in your scenario.
> 
> >From the output, this is 'org-time-stamp', which produces
> <2019-02-28 Thu> here. Based on this in the report:
> 
>     Important settings:
>       value of $LANG: ZHH
>       locale-coding-system: cp1252
> 
> Iʼm assuming thereʼs an issue with buffer-file-coding-system or
> similar.

Unlikely: buffer-file-coding-system has no effect whatsoever on the
text that is inserted into a buffer, it only has effect when you want
to save the buffer or send it to some sub-process.

It could be some snafu in Org, though, e.,g. if it doesn't know how to
support that value of $LANG.  In any case, should be reported to Org
developers first.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 10:01:02 GMT) Full text and rfc822 format available.

Message #21 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Philip.Wong <at> warwick.ac.uk
Cc: Eli Zaretskii <eliz <at> gnu.org>, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 11:00:01 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Iʼm assuming thereʼs an issue with buffer-file-coding-system or
>> similar.
>
> Unlikely: buffer-file-coding-system has no effect whatsoever on the
> text that is inserted into a buffer, it only has effect when you want
> to save the buffer or send it to some sub-process.
>
> It could be some snafu in Org, though, e.,g. if it doesn't know how to
> support that value of $LANG.  In any case, should be reported to Org
> developers first.

org-time-stamp just calls essentially

(insert (format-time-string "<%Y-%m-%d %a>" (current-time)))

so itʼs hard to see how this could be an issue in Org.

Does this happen when running 'emacs -Q'?

Robert




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 10:36:01 GMT) Full text and rfc822 format available.

Message #24 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 12:35:28 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  34684 <at> debbugs.gnu.org
> Date: Fri, 01 Mar 2019 11:00:01 +0100
> 
> > It could be some snafu in Org, though, e.,g. if it doesn't know how to
> > support that value of $LANG.  In any case, should be reported to Org
> > developers first.
> 
> org-time-stamp just calls essentially
> 
> (insert (format-time-string "<%Y-%m-%d %a>" (current-time)))
> 
> so itʼs hard to see how this could be an issue in Org.

That's only so if the above produces the same garbled result as in the
original report.  Does it?




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 13:48:01 GMT) Full text and rfc822 format available.

Message #27 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 14:47:21 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: Eli Zaretskii <eliz <at> gnu.org>,  34684 <at> debbugs.gnu.org
>> Date: Fri, 01 Mar 2019 11:00:01 +0100
>> 
>> > It could be some snafu in Org, though, e.,g. if it doesn't know how to
>> > support that value of $LANG.  In any case, should be reported to Org
>> > developers first.
>> 
>> org-time-stamp just calls essentially
>> 
>> (insert (format-time-string "<%Y-%m-%d %a>" (current-time)))
>> 
>> so itʼs hard to see how this could be an issue in Org.
>
> That's only so if the above produces the same garbled result as in the
> original report.  Does it?

Didnʼt I send this yesterday?

$ LANG=zh_HK src/emacs -Q -l ss.el
(require 'org)
(org-time-stamp)
<2019-03-01 五>

I think '五' is 'Five', but donʼt quote me on that.

So at least for me itʼs working correctly (in both *scratch* and an
Org-mode buffer), which means thereʼs something wrong in the
reporter's configuration somewhere.

Robert




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 13:50:02 GMT) Full text and rfc822 format available.

Message #30 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 14:49:34 +0100
Robert Pluim <rpluim <at> gmail.com> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Robert Pluim <rpluim <at> gmail.com>
>>> Cc: Eli Zaretskii <eliz <at> gnu.org>,  34684 <at> debbugs.gnu.org
>>> Date: Fri, 01 Mar 2019 11:00:01 +0100
>>> 
>>> > It could be some snafu in Org, though, e.,g. if it doesn't know how to
>>> > support that value of $LANG.  In any case, should be reported to Org
>>> > developers first.
>>> 
>>> org-time-stamp just calls essentially
>>> 
>>> (insert (format-time-string "<%Y-%m-%d %a>" (current-time)))
>>> 
>>> so itʼs hard to see how this could be an issue in Org.
>>
>> That's only so if the above produces the same garbled result as in the
>> original report.  Does it?
>
> Didnʼt I send this yesterday?
>
> $ LANG=zh_HK src/emacs -Q -l ss.el
> (require 'org)
> (org-time-stamp)
> <2019-03-01 五>
>
> I think '五' is 'Five', but donʼt quote me on that.
>
> So at least for me itʼs working correctly (in both *scratch* and an
> Org-mode buffer), which means thereʼs something wrong in the
> reporter's configuration somewhere.

And also

(insert (format-time-string "<%Y-%m-%d %a>" (current-time)))

produces the same result for me.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 14:10:02 GMT) Full text and rfc822 format available.

Message #33 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 16:09:24 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Philip.Wong <at> warwick.ac.uk,  34684 <at> debbugs.gnu.org
> Date: Fri, 01 Mar 2019 14:47:21 +0100
> 
> > That's only so if the above produces the same garbled result as in the
> > original report.  Does it?
> 
> Didnʼt I send this yesterday?
> 
> $ LANG=zh_HK src/emacs -Q -l ss.el
> (require 'org)
> (org-time-stamp)
> <2019-03-01 五>
> 
> I think '五' is 'Five', but donʼt quote me on that.

This is not garbage by any measure.  Please compare with what the OP
reported.

In any case, the original report was for Thursday, not Friday.  the
former should AFAIU display 四.  But neither is nowhere close to the
sequence the OP reported, not even if I break the correct character
into individual bytes, so some other factor is at work here.

> So at least for me itʼs working correctly (in both *scratch* and an
> Org-mode buffer), which means thereʼs something wrong in the
> reporter's configuration somewhere.

What, if anything, is wrong with the OP's configuration is exactly the
issue here.  There's no question that current-time and
format-time-string work in general.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 14:26:02 GMT) Full text and rfc822 format available.

Message #36 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 15:25:04 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: Philip.Wong <at> warwick.ac.uk,  34684 <at> debbugs.gnu.org
>> Date: Fri, 01 Mar 2019 14:47:21 +0100
>> 
>> > That's only so if the above produces the same garbled result as in the
>> > original report.  Does it?
>> 
>> Didnʼt I send this yesterday?
>> 
>> $ LANG=zh_HK src/emacs -Q -l ss.el
>> (require 'org)
>> (org-time-stamp)
>> <2019-03-01 五>
>> 
>> I think '五' is 'Five', but donʼt quote me on that.
>
> This is not garbage by any measure.  Please compare with what the OP
> reported.

We are miscommunicating. I was demonstrating that in my setup,
org-time-stamp produces the correct output => itʼs a configuration
issue.

> What, if anything, is wrong with the OP's configuration is exactly the
> issue here.

Right.

Robert




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 01 Mar 2019 14:44:03 GMT) Full text and rfc822 format available.

Message #39 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philip.Wong <at> warwick.ac.uk, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 01 Mar 2019 16:42:58 +0200
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Philip.Wong <at> warwick.ac.uk,  34684 <at> debbugs.gnu.org
> Date: Fri, 01 Mar 2019 15:25:04 +0100
> 
> We are miscommunicating. I was demonstrating that in my setup,
> org-time-stamp produces the correct output => itʼs a configuration
> issue.

I'm not yet sure it's a configuration issue.  It could be some bug
specific to Windows.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 09:42:01 GMT) Full text and rfc822 format available.

Message #42 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Eli Zaretskii <eliz <at> gnu.org>, Robert Pluim <rpluim <at> gmail.com>
Cc: "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 09:41:41 +0000
Sorry, I don't understand what you mean by emacs -Q.

How exactly am I supposed to run this command? 

I tried ctrl c and then started typing 'emacs -Q' but it did nothing.

-----Original Message-----
From: Eli Zaretskii <eliz <at> gnu.org> 
Sent: Friday, March 1, 2019 2:43 PM
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Wong, Philip <Philip.Wong <at> warwick.ac.uk>; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Philip.Wong <at> warwick.ac.uk,  34684 <at> debbugs.gnu.org
> Date: Fri, 01 Mar 2019 15:25:04 +0100
> 
> We are miscommunicating. I was demonstrating that in my setup, 
> org-time-stamp produces the correct output => itʼs a configuration 
> issue.

I'm not yet sure it's a configuration issue.  It could be some bug specific to Windows.

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 10:44:01 GMT) Full text and rfc822 format available.

Message #45 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 11:43:09 +0100
>>>>> On Mon, 11 Mar 2019 09:41:41 +0000, "Wong, Philip" <Philip.Wong <at> warwick.ac.uk> said:

    Philip> Sorry, I don't understand what you mean by emacs -Q.  How
    Philip> exactly am I supposed to run this command?

    Philip> I tried ctrl c and then started typing 'emacs -Q' but it
    Philip> did nothing.

I guess youʼre starting emacs by clicking on some icon? You need to
start it from the command line, with an argument of -Q, probably from
cmd.exe or similar (I am Emacs-on-windows ignorant).

Robert




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 10:48:02 GMT) Full text and rfc822 format available.

Message #48 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 10:47:00 +0000
[Message part 1 (text/plain, inline)]
Does the same thing



[cid:image001.png <at> 01D4D7F7.C09967C0]







-----Original Message-----
From: Robert Pluim <rpluim <at> gmail.com>
Sent: Monday, March 11, 2019 10:43 AM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: Eli Zaretskii <eliz <at> gnu.org>; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date



>>>>> On Mon, 11 Mar 2019 09:41:41 +0000, "Wong, Philip" <Philip.Wong <at> warwick.ac.uk<mailto:Philip.Wong <at> warwick.ac.uk>> said:



    Philip> Sorry, I don't understand what you mean by emacs -Q.  How

    Philip> exactly am I supposed to run this command?



    Philip> I tried ctrl c and then started typing 'emacs -Q' but it

    Philip> did nothing.



I guess youʼre starting emacs by clicking on some icon? You need to start it from the command line, with an argument of -Q, probably from cmd.exe or similar (I am Emacs-on-windows ignorant).



Robert
[Message part 2 (text/html, inline)]
[image001.png (image/png, inline)]

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 14:46:02 GMT) Full text and rfc822 format available.

Message #51 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 16:45:34 +0200
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 09:41:41 +0000
> 
> Sorry, I don't understand what you mean by emacs -Q.
> 
> How exactly am I supposed to run this command? 

Open the Windows command window that runs cmd.exe, and type "emacs -Q"
there.  Then press the [Enter] key.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 14:59:02 GMT) Full text and rfc822 format available.

Message #54 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 16:58:23 +0200
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: Eli Zaretskii <eliz <at> gnu.org>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 10:47:00 +0000
> 
> Does the same thing

OK.  Can you send the list of abbreviated weekdays in your locale's
language, as you expect them to be displayed?  Please send them as
text, not as images.

Also, does this display the data correctly:

  M-: (insert (format-time-string "<%Y-%m-%d %a>" (current-time))) RET

or does it insert the same garbled characters?




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 16:14:02 GMT) Full text and rfc822 format available.

Message #57 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rpluim <at> gmail.com" <rpluim <at> gmail.com>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 16:13:16 +0000
Chinese, Sunday to Saturday:
日
一
二
三
四
五
六

Attempting M-: (I hope I did this right, I pressed Alt + Shift + :, then copied and pasted your command)

No output but it says this on the bottom: 'Trailing garbage following expression'

-----Original Message-----
From: Eli Zaretskii <eliz <at> gnu.org> 
Sent: Monday, March 11, 2019 2:58 PM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: Eli Zaretskii <eliz <at> gnu.org>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 10:47:00 +0000
> 
> Does the same thing

OK.  Can you send the list of abbreviated weekdays in your locale's language, as you expect them to be displayed?  Please send them as text, not as images.

Also, does this display the data correctly:

  M-: (insert (format-time-string "<%Y-%m-%d %a>" (current-time))) RET

or does it insert the same garbled characters?




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 16:43:02 GMT) Full text and rfc822 format available.

Message #60 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 17:41:59 +0100
>>>>> On Mon, 11 Mar 2019 16:13:16 +0000, "Wong, Philip" <Philip.Wong <at> warwick.ac.uk> said:

    Philip> Chinese, Sunday to Saturday:日一二三四五六

    Philip> Attempting M-: (I hope I did this right, I pressed Alt +
    Philip> Shift + :, then copied and pasted your command)

    Philip> No output but it says this on the bottom: 'Trailing
    Philip> garbage following expression'

I guess that means you typed literally ' RET'. Eli meant: type the
command up to the closing ')', and then hit the 'Enter' key, which we
normally refer to as 'RET'.

Robert




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 16:44:01 GMT) Full text and rfc822 format available.

Message #63 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 16:43:00 +0000
I can confirm that I did press Enter, I assumed that meant Return already.

-----Original Message-----
From: Robert Pluim <rpluim <at> gmail.com> 
Sent: Monday, March 11, 2019 4:42 PM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: Eli Zaretskii <eliz <at> gnu.org>; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

>>>>> On Mon, 11 Mar 2019 16:13:16 +0000, "Wong, Philip" <Philip.Wong <at> warwick.ac.uk> said:

    Philip> Chinese, Sunday to Saturday:日一二三四五六

    Philip> Attempting M-: (I hope I did this right, I pressed Alt +
    Philip> Shift + :, then copied and pasted your command)

    Philip> No output but it says this on the bottom: 'Trailing
    Philip> garbage following expression'

I guess that means you typed literally ' RET'. Eli meant: type the command up to the closing ')', and then hit the 'Enter' key, which we normally refer to as 'RET'.

Robert

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 16:55:01 GMT) Full text and rfc822 format available.

Message #66 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 18:54:00 +0200
> X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,
> 	RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED autolearn=disabled version=3.3.2
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: Eli Zaretskii <eliz <at> gnu.org>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 16:43:00 +0000
> Accept-Language: en-GB, ja-JP, en-US
> 
> I can confirm that I did press Enter, I assumed that meant Return already.
> 
> -----Original Message-----
> From: Robert Pluim <rpluim <at> gmail.com> 
> Sent: Monday, March 11, 2019 4:42 PM
> To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
> Cc: Eli Zaretskii <eliz <at> gnu.org>; 34684 <at> debbugs.gnu.org
> Subject: Re: bug#34684: 26.1; Strange characters when inserting date
> 
> >>>>> On Mon, 11 Mar 2019 16:13:16 +0000, "Wong, Philip" <Philip.Wong <at> warwick.ac.uk> said:
> 
>     Philip> Chinese, Sunday to Saturday:日一二三四五六
> 
>     Philip> Attempting M-: (I hope I did this right, I pressed Alt +
>     Philip> Shift + :, then copied and pasted your command)
> 
>     Philip> No output but it says this on the bottom: 'Trailing
>     Philip> garbage following expression'
> 
> I guess that means you typed literally ' RET'. Eli meant: type the command up to the closing ')', and then hit the 'Enter' key, which we normally refer to as 'RET'.

Then please make sure you type 3 closing parentheses at the end, not
4.  If I type 4, I get the same response as you describe.






Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 16:56:02 GMT) Full text and rfc822 format available.

Message #69 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rpluim <at> gmail.com" <rpluim <at> gmail.com>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 16:55:42 +0000
Thanks Eli, you're right.

I still get '<2019-03-11 ¶g¤@>'

-----Original Message-----
From: Eli Zaretskii <eliz <at> gnu.org> 
Sent: Monday, March 11, 2019 4:54 PM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

> X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,
> 	RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED autolearn=disabled 
> version=3.3.2
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: Eli Zaretskii <eliz <at> gnu.org>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 16:43:00 +0000
> Accept-Language: en-GB, ja-JP, en-US
> 
> I can confirm that I did press Enter, I assumed that meant Return already.
> 
> -----Original Message-----
> From: Robert Pluim <rpluim <at> gmail.com>
> Sent: Monday, March 11, 2019 4:42 PM
> To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
> Cc: Eli Zaretskii <eliz <at> gnu.org>; 34684 <at> debbugs.gnu.org
> Subject: Re: bug#34684: 26.1; Strange characters when inserting date
> 
> >>>>> On Mon, 11 Mar 2019 16:13:16 +0000, "Wong, Philip" <Philip.Wong <at> warwick.ac.uk> said:
> 
>     Philip> Chinese, Sunday to Saturday:日一二三四五六
> 
>     Philip> Attempting M-: (I hope I did this right, I pressed Alt +
>     Philip> Shift + :, then copied and pasted your command)
> 
>     Philip> No output but it says this on the bottom: 'Trailing
>     Philip> garbage following expression'
> 
> I guess that means you typed literally ' RET'. Eli meant: type the command up to the closing ')', and then hit the 'Enter' key, which we normally refer to as 'RET'.

Then please make sure you type 3 closing parentheses at the end, not 4.  If I type 4, I get the same response as you describe.



Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 17:31:02 GMT) Full text and rfc822 format available.

Message #72 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 19:29:47 +0200
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "rpluim <at> gmail.com" <rpluim <at> gmail.com>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 16:55:42 +0000
> 
> Thanks Eli, you're right.
> 
> I still get '<2019-03-11 ¶g¤@>'

OK, as expected.  This means Org is indeed off the hook, the problem
is with format-time-string and/or the Windows implementation of the
strftime function.

Does the below produce correct  results, or does it also produce
garbled strings:

  M-: (insert (format-time-string "<%Y-%m-%d %A>" (current-time))) RET

This is the same as what you tried, but with capital %A instead of
lower-case %a.  %A should produce the full name of the weekday.

Also, please evaluate each of the following expressions with
M-: ... RET (replace the "..." with each expression below), and
please tell what each of them produced:

    (w32-get-current-locale-id)
    (w32-get-locale-info (w32-get-current-locale-id) t)
    (w32-get-default-locale-id)
    (w32-get-default-locale-id t)
    (locale-info 'days)




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 17:36:02 GMT) Full text and rfc822 format available.

Message #75 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rpluim <at> gmail.com" <rpluim <at> gmail.com>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 17:35:05 +0000
Here is the output in the order of commands you mentioned:
<2019-03-11 ¬P´Á¤@>

For the other commands, there is no output in the actual buffer) but on the bottom it says....
3076 (#o6004, #xc04)
"?? (??,???????)"
1033 (#o2011, #x409)
3076 (#o6004, #xc04)
["???" "???" "???" "???" "???" "???" "???"]    

-----Original Message-----
From: Eli Zaretskii <eliz <at> gnu.org> 
Sent: Monday, March 11, 2019 5:30 PM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "rpluim <at> gmail.com" <rpluim <at> gmail.com>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 16:55:42 +0000
> 
> Thanks Eli, you're right.
> 
> I still get '<2019-03-11 ¶g¤@>'

OK, as expected.  This means Org is indeed off the hook, the problem is with format-time-string and/or the Windows implementation of the strftime function.

Does the below produce correct  results, or does it also produce garbled strings:

  M-: (insert (format-time-string "<%Y-%m-%d %A>" (current-time))) RET

This is the same as what you tried, but with capital %A instead of lower-case %a.  %A should produce the full name of the weekday.

Also, please evaluate each of the following expressions with
M-: ... RET (replace the "..." with each expression below), and please tell what each of them produced:

    (w32-get-current-locale-id)
    (w32-get-locale-info (w32-get-current-locale-id) t)
    (w32-get-default-locale-id)
    (w32-get-default-locale-id t)
    (locale-info 'days)

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Mon, 11 Mar 2019 17:56:01 GMT) Full text and rfc822 format available.

Message #78 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Mon, 11 Mar 2019 19:55:25 +0200
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "rpluim <at> gmail.com" <rpluim <at> gmail.com>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 17:35:05 +0000
> 
> Here is the output in the order of commands you mentioned:
> <2019-03-11 ¬P´Á¤@>
> 
> For the other commands, there is no output in the actual buffer) but on the bottom it says....
> 3076 (#o6004, #xc04)
> "?? (??,???????)"
> 1033 (#o2011, #x409)
> 3076 (#o6004, #xc04)
> ["???" "???" "???" "???" "???" "???" "???"]    

Thanks, I think I understand what happens.  The problem is that your
locale produces day names that cannot be represented with codepage
1252, so you get garbled strings and question marks instead.

Does it help to change the value of locale-coding-system, like below?

  M-: (setq locale-coding-system 'cp950)




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Tue, 12 Mar 2019 03:52:01 GMT) Full text and rfc822 format available.

Message #81 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Takaaki Ishikawa <takaxp <at> ieee.org>
To: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: Robert Pluim <rpluim <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: Re: [O] bug#34684: 26.1; Strange characters when inserting date
Date: Tue, 12 Mar 2019 12:42:39 +0900
[Message part 1 (text/plain, inline)]
Hi folks,

Have you tried to use `set-local-environment'?
I usually use the command to change the date formatting in my init.el as
follows:

(set-locale-environment "en_US.UTF-8") ;; "ja_JP.UTF-8"

Best  regards,
Takaaki Ishikawa


2019年3月12日(火) 3:34 Wong, Philip <Philip.Wong <at> warwick.ac.uk>:

> Does the same thing
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Robert Pluim <rpluim <at> gmail.com>
> Sent: Monday, March 11, 2019 10:43 AM
> To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
> Cc: Eli Zaretskii <eliz <at> gnu.org>; 34684 <at> debbugs.gnu.org
> Subject: Re: bug#34684: 26.1; Strange characters when inserting date
>
>
>
> >>>>> On Mon, 11 Mar 2019 09:41:41 +0000, "Wong, Philip" <
> Philip.Wong <at> warwick.ac.uk> said:
>
>
>
>     Philip> Sorry, I don't understand what you mean by emacs -Q.  How
>
>     Philip> exactly am I supposed to run this command?
>
>
>
>     Philip> I tried ctrl c and then started typing 'emacs -Q' but it
>
>     Philip> did nothing.
>
>
>
> I guess youʼre starting emacs by clicking on some icon? You need to start
> it from the command line, with an argument of -Q, probably from cmd.exe or
> similar (I am Emacs-on-windows ignorant).
>
>
>
> Robert
>
[Message part 2 (text/html, inline)]
[image001.png (image/png, inline)]

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Tue, 12 Mar 2019 09:59:02 GMT) Full text and rfc822 format available.

Message #84 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rpluim <at> gmail.com" <rpluim <at> gmail.com>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Tue, 12 Mar 2019 09:58:17 +0000
That did the job, thanks!


-----Original Message-----
From: Eli Zaretskii <eliz <at> gnu.org> 
Sent: Monday, March 11, 2019 5:55 PM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "rpluim <at> gmail.com" <rpluim <at> gmail.com>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Mon, 11 Mar 2019 17:35:05 +0000
> 
> Here is the output in the order of commands you mentioned:
> <2019-03-11 ¬P´Á¤@>
> 
> For the other commands, there is no output in the actual buffer) but on the bottom it says....
> 3076 (#o6004, #xc04)
> "?? (??,???????)"
> 1033 (#o2011, #x409)
> 3076 (#o6004, #xc04)
> ["???" "???" "???" "???" "???" "???" "???"]    

Thanks, I think I understand what happens.  The problem is that your locale produces day names that cannot be represented with codepage 1252, so you get garbled strings and question marks instead.

Does it help to change the value of locale-coding-system, like below?

  M-: (setq locale-coding-system 'cp950)

Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Tue, 12 Mar 2019 15:54:02 GMT) Full text and rfc822 format available.

Message #87 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Takaaki Ishikawa <takaxp <at> ieee.org>
Cc: Philip.Wong <at> warwick.ac.uk, rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: [O] bug#34684: 26.1; Strange characters when inserting date
Date: Tue, 12 Mar 2019 17:53:08 +0200
> From: Takaaki Ishikawa <takaxp <at> ieee.org>
> Date: Tue, 12 Mar 2019 12:42:39 +0900
> Cc: Robert Pluim <rpluim <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>, 
> 	"34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
> 
> Have you tried to use `set-local-environment'?
> I usually use the command to change the date formatting in my init.el as follows:
> 
> (set-locale-environment "en_US.UTF-8") ;; "ja_JP.UTF-8"

You are on GNU/Linux, right?  Because the above will not work on
Windows, because UTF-8 os not reliably supported, not even in Windows
10 (which added some improvements in that area).

But perhaps this could help:

  (set-language-environment "Chinese-Big5")

However, it's possible that even this will not help, unless the system
codepage is changed to something that can support Chinese.




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Tue, 12 Mar 2019 16:02:01 GMT) Full text and rfc822 format available.

Message #90 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Wong\, Philip" <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com, 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Tue, 12 Mar 2019 18:01:10 +0200
> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "rpluim <at> gmail.com" <rpluim <at> gmail.com>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Tue, 12 Mar 2019 09:58:17 +0000
> 
> That did the job, thanks!

OK, thanks.  I guess we will need to try doing this automatically at
startup...




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Tue, 12 Mar 2019 16:05:02 GMT) Full text and rfc822 format available.

Message #93 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "rpluim <at> gmail.com" <rpluim <at> gmail.com>,
 "34684 <at> debbugs.gnu.org" <34684 <at> debbugs.gnu.org>
Subject: RE: bug#34684: 26.1; Strange characters when inserting date
Date: Tue, 12 Mar 2019 16:04:23 +0000
FTR I'm running Windows 10

-----Original Message-----
From: Eli Zaretskii <eliz <at> gnu.org> 
Sent: Tuesday, March 12, 2019 4:01 PM
To: Wong, Philip <Philip.Wong <at> warwick.ac.uk>
Cc: rpluim <at> gmail.com; 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date

> From: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>
> CC: "rpluim <at> gmail.com" <rpluim <at> gmail.com>, "34684 <at> debbugs.gnu.org"
> 	<34684 <at> debbugs.gnu.org>
> Date: Tue, 12 Mar 2019 09:58:17 +0000
> 
> That did the job, thanks!

OK, thanks.  I guess we will need to try doing this automatically at startup...




Information forwarded to emacs-orgmode <at> gnu.org:
bug#34684; Package org-mode. (Fri, 22 May 2020 12:11:02 GMT) Full text and rfc822 format available.

Message #96 received at 34684 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>, rpluim <at> gmail.com,
 34684 <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 22 May 2020 14:10:21 +0200
It seems like the bug is not related to org-mode.

I'd like to "unassign" the bug report from org-mode, but
I am not sure how to do that.  If anyone can help, thanks.

-- 
 Bastien




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 22 May 2020 12:19:01 GMT) Full text and rfc822 format available.

Notification sent to "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>:
bug acknowledged by developer. (Fri, 22 May 2020 12:19:01 GMT) Full text and rfc822 format available.

Message #101 received at 34684-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Bastien <bzg <at> gnu.org>
Cc: Philip.Wong <at> warwick.ac.uk, rpluim <at> gmail.com, 34684-done <at> debbugs.gnu.org
Subject: Re: bug#34684: 26.1; Strange characters when inserting date
Date: Fri, 22 May 2020 15:18:07 +0300
> From: Bastien <bzg <at> gnu.org>
> Cc: "Wong, Philip" <Philip.Wong <at> warwick.ac.uk>,  rpluim <at> gmail.com,
>   34684 <at> debbugs.gnu.org
> Date: Fri, 22 May 2020 14:10:21 +0200
> 
> It seems like the bug is not related to org-mode.

It isn't, but it can also be closed.  Which I did.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Jun 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 309 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.