From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii Subject: bug#34684: 26.1; Strange characters when inserting date Date: Mon, 11 Mar 2019 19:29:47 +0200 Message-ID: <83va0p48vo.fsf@gnu.org> References: <83h8cnkdc5.fsf@gnu.org> <83zhqfit5u.fsf@gnu.org> <83d0naj30v.fsf@gnu.org> <837ediit4b.fsf@gnu.org> <835zt2irkd.fsf@gnu.org> <8336nt5ugg.fsf@gnu.org> <83wol54ajb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3OtH-0008Rv-5A for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 13:39:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3OlT-0003rk-0x for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 13:31:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54125) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3OlS-0003rN-PI for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 13:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h3OlS-000674-FD for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 13:31:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: (Philip.Wong@warwick.ac.uk) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Wong, Philip" Cc: rpluim@gmail.com, 34684@debbugs.gnu.org > From: "Wong, Philip" > CC: "rpluim@gmail.com" , "34684@debbugs.gnu.org" > <34684@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)