From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +DUvH2/V/1+adwAA0tVLHw (envelope-from ) for ; Thu, 14 Jan 2021 05:23:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6Ft5Gm/V/1/jFgAAB5/wlQ (envelope-from ) for ; Thu, 14 Jan 2021 05:23:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EA43B940396 for ; Thu, 14 Jan 2021 05:23:55 +0000 (UTC) Received: from localhost ([::1]:52518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzv6w-0000Jh-OH for larch@yhetil.org; Thu, 14 Jan 2021 00:23:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzv61-0000JA-32 for emacs-orgmode@gnu.org; Thu, 14 Jan 2021 00:22:57 -0500 Received: from out1.migadu.com ([2001:41d0:2:863f::]:31538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzv5x-0004My-OR for emacs-orgmode@gnu.org; Thu, 14 Jan 2021 00:22:56 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1610601768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1G0wWgInzc5vkQaOfe5e34qML3d3lTl/T8bMzCD67mU=; b=dmJjr0n9ZrU1RomebRx0N29kzXuQAjpcu7mgXKPar+eSPjT6veujTZZy1Kq2WvLlHJej6W vE4sW/usSw0dAzksF33UJBZ9Ua72I1E+ms7HroJxlWEoB+Me4wFmhsGpLT+9a4h0wJydAN 7XYfFqAaewqjjkofR83PhVicgtMwNaNGJ7IHGyyMjA1eX6FQtfe51osEXFI6BWMn2an2y1 9bSwVcqmR6rCoOsrkSZUO2sHOCOMaw6oLFQq+/8Gr1IL4rQMroEvwAz6R6msPANOX1Ocsq WNcZMoxYhZYpCjVqeuB6btj8ODPX81oaPgV8xknJCAKfln5vBmi28Buj25AKSQ== From: Kyle Meyer To: Christian Garbs Subject: Re: [PATCH] testing/lisp/test-org-archive.el: Fix test In-Reply-To: <20210113220939.sbkhyefniyvsypah@cgarbs.de> References: <20210113220939.sbkhyefniyvsypah@cgarbs.de> X-Woof-Patch: applied Message-ID: <87a6tc5byx.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Date: Thu, 14 Jan 2021 05:22:48 GMT Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=dmJjr0n9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: EA43B940396 X-Spam-Score: -2.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: GR1FSbWjIfMw Christian Garbs via "General discussions about Org-mode." writes: > Hello, > > I've run across a test error on the current HEAD. > When I run "make test" on my system, then test-org-archive/datetree > fails. > > The test fails because the expected output should contain "Sunday", > but with a German locale the generated text is "Sonntag" instead > (which is the German translation of "Sunday"). Ah, that was dumb on my part. > Subject: [PATCH] testing/lisp/test-org-archive.el: Fix test > > * testing/lisp/test-org-archive.el > (test-org-archive/datetree): Fix test for locales that don't use > English weekday names. > --- > testing/lisp/test-org-archive.el | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/testing/lisp/test-org-archive.el b/testing/lisp/test-org-archive.el > index 71ab427d2..d24a54794 100644 > --- a/testing/lisp/test-org-archive.el > +++ b/testing/lisp/test-org-archive.el > @@ -63,7 +63,7 @@ > ;; Test in buffer target with no additional subheadings... > (should > (string-match-p > - (regexp-quote "*** 2020-07-05 Sunday\n**** a") > + (regexp-quote (format-time-string "*** 2020-07-05 %A\n**** a")) Works for me. Another option would be to let-bind system-time-locale. Applied (d02c0218e). Thank you.