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.

Full log


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)

This bug report was last modified 5 years and 2 days ago.

Previous Next


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