From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EP9eFF6wQ2SULgAASxT56A (envelope-from ) for ; Sat, 22 Apr 2023 12:01:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eOlDFF6wQ2QDcwEAauVa8A (envelope-from ) for ; Sat, 22 Apr 2023 12:01:02 +0200 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 A4C412174F for ; Sat, 22 Apr 2023 12:01:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqA2U-0002D6-Gd; Sat, 22 Apr 2023 06:00:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqA2N-0002Cd-Ho for emacs-orgmode@gnu.org; Sat, 22 Apr 2023 06:00:11 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqA2L-00088h-6w for emacs-orgmode@gnu.org; Sat, 22 Apr 2023 06:00:11 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 18b62c7e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 22 Apr 2023 10:00:05 +0000 (UTC) References: User-agent: mu4e 1.9.22; emacs 30.0.50 To: Axel Kielhorn Cc: emacs-orgmode@gnu.org Subject: Re: Test failure due to LANG Date: Sat, 22 Apr 2023 17:51:30 +0800 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682157662; a=rsa-sha256; cv=none; b=m9GbGdyzs2dFO+1idmdr7J6y5tWrHcVVhywJXggCI8tMbCZoJy8uEqrKP9pV7nQUU6BJAa e0MY5UzJydKr308En+GJcjoz3uPIxxLgB1xVb3Gk3qVvsMXH4yUXKnCadBQoNTULQQVaEo aj80VSwU1WWyHHN0umKU9Z8JvMYKSS8Km5xIsby3uTT2ZBP7Ddl/c2lTb7vr44u8Ve5EGO 9N4DKq8VH+uVbOSsPUCeOsdiaL5Aqxe/CxrrVrKg6JAOfhSciR2mAq6Q3EnwnsjZCrLbvm Ef2JSPIOfBHZRuqnoRAYoDyZytAVp/F4QMS4Kg7gYfOF2PPTvFwGZq3CyZU52w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682157662; h=from:from:sender:sender:reply-to: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=RNrH7JPfvTzYEzA7lLegkcQ0l/bbtFzj9G6g73KL9WY=; b=F/temPEcWOwHCMMoE5eHggdgvGHqSDN0bkXrqY5KrhQex1qEZYuw1O6g/vFZ1zHHxsgVyU qyPmpwpWq31Lk3bJ7RK6+p0K92eYpBoRgLxmpOhKLUTuOfvQ1US3Gk5KyMwJrktOzjuHnm IdxMSgnP9X0OVRZsXqvquALuzWmtgSjRmYGaDC5dKYECiQO1+UIznCLBJl62zdy4g4eY1W PwRJxhRbpLRe56FZXxZ/+eAYa6/7DYZ9qZcLUxaWuQrJRGzO/jLzVTEkQjFPsnOdSP23p/ TweN9MizxF7sPxMUJCUAHiCB+/nyxPwbJpWusDNPGt5qDYHehl2ygtFcivtBcw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.51 X-Spam-Score: -3.51 X-Migadu-Queue-Id: A4C412174F X-TUID: ie+hbHxm/n1I --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Axel Kielhorn writes: > Hello! > > I=E2=80=99m building org with LANG=3Dde. > As a result I get two failed tests: Reproducible using "LANG=3Dzh_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 additional test failures on my testing are probably due to the fact that each Chinese character is as wide as two latin letters, which catches some testing code offguard. Here are the test names that failed unexpectedly for me. All the "should"'s and "should-not"'s are in the attachment below. --8<---------------cut here---------------start------------->8--- 8 unexpected results: FAILED test-org-clock/clock-drawer-dwim FAILED test-org-clock/clocktable/lang FAILED test-org-clok/org-clock-timestamps-change FAILED test-org-colview/columns-width FAILED test-org/add-planning-info FAILED test-org/clone-with-time-shift FAILED test-org/deadline FAILED test-org/schedule --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=lang.txt Content-Transfer-Encoding: quoted-printable 8 unexpected results: FAILED test-org-clock/clock-drawer-dwim ((should (equal "* Foo\n:LOGBO= OK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] =3D> 0:01\n:END= :\n" (org-test-with-temp-text "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 = ??? 06:00]--[2022-11-03 ??? 06:01] =3D> 0:01\n:END:\n" (org-ctrl-c-ctrl-c)= (buffer-string)))) :form (equal "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu = 06:00]--[2022-11-03 Thu 06:01] =3D> 0:01\n:END:\n" #("* Foo\n:LOGBOOK:\nCL= OCK: [2022-11-03 =E5=9B=9B 06:00]--[2022-11-03 =E5=9B=9B 06:01] =3D> 0:01\= n:END:\n" 0 2 (face org-level-1) 2 5 (face org-level-1) 6 15 (font-lock-fon= tified t face org-drawer) 16 22 (face org-special-keyword) 43 65 (face org-= date keymap (keymap (follow-link . mouse-face) (mouse-3 . org-find-file-at-= mouse) (mouse-2 . org-open-at-mouse)) mouse-face highlight) 75 80 (font-loc= k-fontified t face org-drawer))) :value nil :explanation (arrays-of-differe= nt-length 85 81 "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-= 03 Thu 06:01] =3D> 0:01\n:END:\n" #("* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 = =E5=9B=9B 06:00]--[2022-11-03 =E5=9B=9B 06:01] =3D> 0:01\n:END:\n" 0 2 (fa= ce org-level-1) 2 5 (face org-level-1) 6 15 (font-lock-fontified t face org= -drawer) 16 22 (face org-special-keyword) 43 65 (face org-date keymap (keym= ap (follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 .= org-open-at-mouse)) mouse-face highlight) 75 80 (font-lock-fontified t fac= e org-drawer)) first-mismatch-at 35)) FAILED test-org-clock/clocktable/lang ((should (equal "| En-t=C3=AAte = | Dur=C3=A9e |\n|----------------+---------|\n| *Dur=C3=A9e totale= * | *26:00* |\n|----------------+---------|\n| Foo | 26:00 |" = (org-test-with-temp-text "* Foo\n CLOCK: [2016-12-27 Wed 13:09]--[2016-12-= 28 Wed 15:09] =3D> 26:00" (test-org-clock-clocktable-contents ":maxlevel 1 = :lang fr")))) :form (equal "| En-t=C3=AAte | Dur=C3=A9e |\n|------= ----------+---------|\n| *Dur=C3=A9e totale* | *26:00* |\n|----------------= +---------|\n| Foo | 26:00 |" "| En-t=C3=AAte | Dur=C3= =A9e |\n|-----------------+---------|\n| *Dur=C3=A9e totale* | *26:00* |\n= |-----------------+---------|\n| Foo | 26:00 |") :value nil := explanation (arrays-of-different-length 144 146 "| En-t=C3=AAte | Du= r=C3=A9e |\n|----------------+---------|\n| *Dur=C3=A9e totale* | *26:00*= |\n|----------------+---------|\n| Foo | 26:00 |" "| En-t=C3= =AAte | Dur=C3=A9e |\n|-----------------+---------|\n| *Dur=C3=A9e = totale* | *26:00* |\n|-----------------+---------|\n| Foo | 26:= 00 |" first-mismatch-at 26)) FAILED test-org-clok/org-clock-timestamps-change ((should (equal "CLOC= K: [2023-02-19 Sun 21:30]--[2023-02-19 Sun 23:35] =3D> 2:05" (org-test-wit= h-temp-text "CLOCK: [2023-02-19 Sun 22:30]--[2023-02-20 Mon 00:35] = =3D> 2:05" (org-clock-timestamps-change 'down 1) (buffer-string)))) :form = (equal "CLOCK: [2023-02-19 Sun 21:30]--[2023-02-19 Sun 23:35] =3D> 2:05" #= ("CLOCK: [2023-02-19 =E6=97=A5 21:30]--[2023-02-19 =E6=97=A5 23:35] =3D> 2= :05" 0 6 (face org-special-keyword) 27 49 (face org-date keymap (keymap (fo= llow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 . org-o= pen-at-mouse)) mouse-face highlight))) :value nil :explanation (arrays-of-d= ifferent-length 62 58 "CLOCK: [2023-02-19 Sun 21:30]--[2023-02-19 Sun 23:35= ] =3D> 2:05" #("CLOCK: [2023-02-19 =E6=97=A5 21:30]--[2023-02-19 =E6=97=A5= 23:35] =3D> 2:05" 0 6 (face org-special-keyword) 27 49 (face org-date key= map (keymap (follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) (= mouse-2 . org-open-at-mouse)) mouse-face highlight)) first-mismatch-at 19)) FAILED test-org-colview/columns-width ((should (equal "1234=E2=80=A6 |= " (org-test-with-temp-text "* H\n:PROPERTIES:\n:P: 123456\n:END:" (let (...= ...) (org-columns)) (org-trim (get-char-property ... ...))))) :form (equal= "1234=E2=80=A6 |" "1234 |") :value nil :explanation (array-elt 4 (differe= nt-atoms (8230 "#x2026" "?=E2=80=A6") (32 "#x20" "? ")))) FAILED test-org/add-planning-info ((should (equal "* H\n DEADLINE: <2= 015-06-25>\nParagraph" (org-test-with-temp-text "* H\nParagraph" (le= t (...) (org-add-planning-info ... "<2015-06-25 Thu>")) (replace-regexp-in-= string "\\( [.A-Za-z]+\\)>" "" (buffer-string) nil nil 1)))) :form (equal "= * H\n DEADLINE: <2015-06-25>\nParagraph" #("* H\n DEADLINE: <2015-06-25 = =E5=9B=9B>\nParagraph" 0 2 (face org-level-1) 2 30 (face org-level-1))) :va= lue nil :explanation (arrays-of-different-length 38 40 "* H\n DEADLINE: <2= 015-06-25>\nParagraph" #("* H\n DEADLINE: <2015-06-25 =E5=9B=9B>\nParagrap= h" 0 2 (face org-level-1) 2 30 (face org-level-1)) first-mismatch-at 27)) FAILED test-org/clone-with-time-shift ((should (equal "* H1\n<2015-06-= 21>\n* H1\n<2015-06-23>\n" (org-test-with-temp-text "* H1\n<2015-06-21 Sun>= " (org-clone-subtree-with-time-shift 1 "+2d") (replace-regexp-in-string "\\= ( [.A-Za-z]+\\)\\( \\+[0-9][hdmwy]\\)?>" "" (buffer-string) nil nil 1)))) := form (equal "* H1\n<2015-06-21>\n* H1\n<2015-06-23>\n" #("* H1\n<2015-06-21= >\n* H1\n<2015-06-23 =E4=BA=8C>\n" 0 2 (face org-level-1) 2 4 (face org-lev= el-1) 5 16 (face org-date keymap (keymap (follow-link . mouse-face) (mouse-= 3 . org-find-file-at-mouse) (mouse-2 . org-open-at-mouse)) mouse-face highl= ight) 16 17 (face org-date rear-nonsticky (mouse-face highlight keymap invi= sible intangible help-echo org-linked-text htmlize-link) keymap (keymap (fo= llow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 . org-o= pen-at-mouse)) mouse-face highlight) 18 20 (face org-level-1) 20 22 (face o= rg-level-1))) :value nil :explanation (arrays-of-different-length 36 38 "* = H1\n<2015-06-21>\n* H1\n<2015-06-23>\n" #("* H1\n<2015-06-21>\n* H1\n<2015-= 06-23 =E4=BA=8C>\n" 0 2 (face org-level-1) 2 4 (face org-level-1) 5 16 (fac= e org-date keymap (keymap (follow-link . mouse-face) (mouse-3 . org-find-fi= le-at-mouse) (mouse-2 . org-open-at-mouse)) mouse-face highlight) 16 17 (fa= ce org-date rear-nonsticky (mouse-face highlight keymap invisible intangibl= e help-echo org-linked-text htmlize-link) keymap (keymap (follow-link . mou= se-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 . org-open-at-mouse)) = mouse-face highlight) 18 20 (face org-level-1) 20 22 (face org-level-1)) fi= rst-mismatch-at 34)) FAILED test-org/deadline ((should (equal "* H\nDEADLINE: <2012-03-29>"= (org-test-with-temp-text "* H" (let (... ...) (org-deadline nil "<2012-03-= 29 Tue>")) (replace-regexp-in-string "\\( [.A-Za-z]+\\)>" "" (buffer-string= ) nil nil 1)))) :form (equal "* H\nDEADLINE: <2012-03-29>" #("* H\nDEADLINE= : <2012-03-29 =E5=9B=9B>" 0 2 (face org-level-1) 2 28 (face org-level-1))) = :value nil :explanation (arrays-of-different-length 26 28 "* H\nDEADLINE: <= 2012-03-29>" #("* H\nDEADLINE: <2012-03-29 =E5=9B=9B>" 0 2 (face org-level-= 1) 2 28 (face org-level-1)) first-mismatch-at 25)) FAILED test-org/schedule ((should (equal "* H\nSCHEDULED: <2012-03-29>= " (org-test-with-temp-text "* H" (let (... ...) (org-schedule nil "<2012-03= -29 Tue>")) (replace-regexp-in-string "\\( [.A-Za-z]+\\)>" "" (buffer-strin= g) nil nil 1)))) :form (equal "* H\nSCHEDULED: <2012-03-29>" #("* H\nSCHEDU= LED: <2012-03-29 =E5=9B=9B>" 0 2 (face org-level-1) 2 29 (face org-level-1)= )) :value nil :explanation (arrays-of-different-length 27 29 "* H\nSCHEDULE= D: <2012-03-29>" #("* H\nSCHEDULED: <2012-03-29 =E5=9B=9B>" 0 2 (face org-l= evel-1) 2 29 (face org-level-1)) first-mismatch-at 26)) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > FAILED test-org-clock/clock-drawer-dwim ((should (equal "* > Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] =3D> > 0:01\n:END:\n" (org-test-with-temp-text "* Foo\n:LOGBOOK:\nCLOCK: > [2022-11-03 ??? 06:00]--[2022-11-03 ??? 06:01] =3D> 0:01\n:END:\n" > (org-ctrl-c-ctrl-c) (buffer-string)))) :form (equal "* > Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] =3D> > 0:01\n:END:\n" #("* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do > 06:00]--[2022-11-03 Do 06:01] =3D> 0:01\n:END:\n" 0 2 (face org-level-1)= 2 5 > (face org-level-1) 6 15 (face org-drawer font-lock-fontified t) 16 22 (fa= ce > org-special-keyword) 44 67 (mouse-face highlight keymap (keymap (follow-l= ink > . mouse-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 . > org-open-at-mouse)) face org-date) 77 82 (face org-drawer > font-lock-fontified t))) :value nil :explanation=20 > (arrays-of-different-length 85 83=20 > > "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] = =3D> 0:01\n:END:\n" #( > "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:01] = =3D> 0:01\n:END:\n"=20 > > 0 2 (face org-level-1) 2 5 (face org-level-1) 6 15 (face org-drawer > font-lock-fontified t) 16 22 (face org-special-keyword) 44 67 (mouse-face > highlight keymap (keymap (follow-link . mouse-face) (mouse-3 > . org-find-file-at-mouse) (mouse-2 . org-open-at-mouse)) face org-date) 7= 7 82 > (face org-drawer font-lock-fontified t)) first-mismatch-at 35)) > > FAILED test-org-clok/org-clock-timestamps-change ((should (equal > "CLOCK: [2023-02-19 Sun 21:30]--[2023-02-19 Sun 23:35] =3D> 2:05" > (org-test-with-temp-text "CLOCK: [2023-02-19 Sun 22:30]--[2023-02-= 20 > Mon 00:35] =3D> 2:05" (org-clock-timestamps-change 'down 1) > (buffer-string)))) :form (equal "CLOCK: [2023-02-19 Sun 21:30]--[2023-02-= 19 > Sun 23:35] =3D> 2:05" #("CLOCK: [2023-02-19 So 21:30]--[2023-02-19 So 23= :35] > =3D> 2:05" 0 6 (face org-special-keyword) 28 51 (mouse-face highlight ke= ymap > (keymap (follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) > (mouse-2 . org-open-at-mouse)) face org-date))) :value nil :explanation > (arrays-of-different-length 62 60=20 > > "CLOCK: [2023-02-19 Sun 21:30]--[2023-02-19 Sun 23:35] =3D> 2:05" #( > "CLOCK: [2023-02-19 So 21:30]--[2023-02-19 So 23:35] =3D> 2:05"=20 > > 0 6 (face org-special-keyword) 28 51 (mouse-face highlight keymap (keymap > (follow-link . mouse-face) (mouse-3 . org-find-file-at-mouse) (mouse-2 > . org-open-at-mouse)) face org-date)) first-mismatch-at 20)) > > When I build with LANG=3DC, these tests pass. > > I=E2=80=99m using macOS 11.7 on intel, but that shouldn=E2=80=99t affect = these two fails. For me, I have a month-old Emacs master, with an up-to-date orgmode.git. > Greetings Axel --=20 Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- still investigating.] --=-=-=--