Re: Test failure due to LANG

2023-04-22 Thread Max Nikulin
On 22/04/2023 21:40, Axel Kielhorn wrote: (with-environment-variables (("LC_TIME" "de_DE.UTF-8")) (format-time-string "%A“)) Still results in „Saturday“ when I start emacs from a shell with LANG=C. Changing environment variable while process is running is not enough. There is a dedicated fu

Re: Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 16:21 schrieb Max Nikulin : > > On 22/04/2023 19:35, Ihor Radchenko wrote: >> Axel Kielhorn writes: >>> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => >>> 0:01\n:END:\n" #( >>> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:0

Re: Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 14:35 schrieb Ihor Radchenko : > > > (with-environment-variables (("LANG" "de")) > (format-time-string "%A")) > (with-environment-variables (("LANG" "en")) > (format-time-string "%A“)) When I start Emacs from a shell with LANG=de I get „Samstag“ in both cases. When I star

Re: Test failure due to LANG

2023-04-22 Thread Ihor Radchenko
Max Nikulin writes: >> (with-environment-variables (("LANG" "de")) >>(format-time-string "%A")) >> (with-environment-variables (("LANG" "en")) >>(format-time-string "%A")) > > ("LC_TIME" "de_DE.UTF-8") > > Since it is related to dates or even "LC_ALL". E.g. Ubuntu installer may > configu

Re: Test failure due to LANG

2023-04-22 Thread Axel Kielhorn
> Am 22.04.2023 um 14:37 schrieb Ruijie Yu : > > > > Axel, does this patch fix test-org-clock/clock-drawer-dwim on your > system? > > <0001-testing-lisp-test-org-clock.el.patch> Yes it does, thanks. Axel

Re: Test failure due to LANG

2023-04-22 Thread Max Nikulin
On 22/04/2023 19:35, Ihor Radchenko wrote: Axel Kielhorn writes: "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => 0:01\n:END:\n" #( "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:01] => 0:01\n:END:\n" (with-environment-variables (("LANG" "de")

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Ihor Radchenko writes: > Axel Kielhorn writes: > >> I’m building org with LANG=de. >> As a result I get two failed tests: >> >> ... >> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => >> 0:01\n:END:\n" #( >> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Ruijie Yu via "General discussions about Org-mode." > writes: > >> Axel Kielhorn writes: >> >>> Hello! >>> >>> I’m building org with LANG=de. >>> As a result I get two failed tests: >> >> Reproducible using "LANG=zh_CN.UTF-8". In

Re: Test failure due to LANG

2023-04-22 Thread Ihor Radchenko
Axel Kielhorn writes: > I’m building org with LANG=de. > As a result I get two failed tests: > > ... > "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] => > 0:01\n:END:\n" #( > "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:01] => > 0:01\n:END:\n"

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Ruijie Yu via "General discussions about Org-mode." writes: > Axel Kielhorn writes: > >> Hello! >> >> I’m building org with LANG=de. >> As a result I get two failed tests: > > Reproducible using "LANG=zh_CN.UTF-8". In fact, I got more failed tests > in my testing. I think the OP's two test f

Re: Test failure due to LANG

2023-04-22 Thread General discussions about Org-mode.
Axel Kielhorn writes: > Hello! > > I’m building org with LANG=de. > As a result I get two failed tests: Reproducible using "LANG=zh_CN.UTF-8". In fact, I got more failed tests in my testing. I think the OP's two test failures are due to hardcoded English expected result, whereas the additiona