From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QDg0CCVHQmM6qgAAbAwnHQ (envelope-from ) for ; Sun, 09 Oct 2022 05:59:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0CRjByVHQmM5VAEAG6o9tA (envelope-from ) for ; Sun, 09 Oct 2022 05:59:33 +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 DA50AF785 for ; Sun, 9 Oct 2022 05:59:32 +0200 (CEST) Received: from localhost ([::1]:43504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohNTQ-0000Wd-0z for larch@yhetil.org; Sat, 08 Oct 2022 23:59:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohNSe-0000WT-TD for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 23:58:47 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:44940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohNSd-0004OX-6a for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 23:58:44 -0400 Received: by mail-pg1-x529.google.com with SMTP id c7so7783207pgt.11 for ; Sat, 08 Oct 2022 20:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=PlieassB7SxLltBPKV2wai/4YZSKDYZWL0+PW+isDYs=; b=jlQj3UW97FiAz6pmds+ZPKJ+za3JRYfEia53DcTYBvQnK3IwbOPdScYSF8I5IqKQwe DLpp827Wda+lvOVxvQ0TFldkW5BXYrMLa7SqVf5cuDGL5rLlNr6gIh7dRdocK5iN7E2+ 7sHEmT6tej7ulceZlvkDcStNXzS04KFPgxJ8NAP5o1m008BAuhrCnxu/Z/Aoz7WPW+/X 4jbRDqjLmoNNfzHj5hlpRP4jdY7WQuaWbSIMLs/ES4soV1RW7zHwdMXg/w8ToarNL7KD jsX0EgRR5W/JaBvxlCpj5zFaejr/GdUAh0pDgShxYeJfkUE5T/22GoCIQJGW3ya21j4t Zw7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PlieassB7SxLltBPKV2wai/4YZSKDYZWL0+PW+isDYs=; b=tdbOvH8aIm5AALY3PjEJ7WEboWxueIJ+Of56j613QjdgkEvC25DedpNG2eIm7WPt1/ JVxMcI0Wt+GpKs/Fl0KdUcI3rOQ97Meg/rmQGqYFIG80Aw1ROl0QjcN4oQ0x94mdG+pY LvBWS1JxhkJeRdsvYQ34FiRwV+DJLMvDU4sVQNO5kt5ItSAzh9AIEqtFPowmmezq/1/F Wrx/gQ2KO4ocBB4MP+Tj7F7GAuI2+kRMrhGH5j6XkBGdMTICNaznrikK+rnIMzWgduLK N+zwl/xIfTXzbWqv+Kd9V2eNVeYxjhVw1rSPImegHor4WKGq+X1EdvVxLZ01NpKbzgZa 8sOQ== X-Gm-Message-State: ACrzQf16Y6H0kqnQt7dnGKrBQacTQCgr+RQUN1qrMqvaP/5cEMBi4qWP NQK6KdjJStn8OoeLBUKcLbQ= X-Google-Smtp-Source: AMsMyM7HXOsY9hAQCLw5EAFy6NWodUOmjGCd3JjHHXx74KjLFUW76vZ2qwgrBa10QpKWIOmdVewsfg== X-Received: by 2002:a63:4d5:0:b0:460:9a0:b3a2 with SMTP id 204-20020a6304d5000000b0046009a0b3a2mr5604299pge.38.1665287921337; Sat, 08 Oct 2022 20:58:41 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id y15-20020a17090264cf00b0017b224969d6sm4058746pli.76.2022.10.08.20.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Oct 2022 20:58:40 -0700 (PDT) From: Ihor Radchenko To: Max Nikulin , Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: test-org-table/sort-lines: Failing test on macOS In-Reply-To: References: <87ilkulwdy.fsf@localhost> Date: Sun, 09 Oct 2022 11:59:25 +0800 Message-ID: <87y1tpejfm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=yantar92@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665287972; h=from:from:sender:sender: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:dkim-signature; bh=PlieassB7SxLltBPKV2wai/4YZSKDYZWL0+PW+isDYs=; b=iSsfpZxVBfbEOferbrk6BQKtE94PnliJnXtUCAF9A1Cbeiw7mvKxbHBV+49TMdsCgDmo2e SYuG8Y1rCL1eGbPWt1XOFu9IyfMq+p1rgcRdYT9AwvT2vW+QJo5a0ZIm3BxsEblqyJ+6E3 ckxQj8Fo86MmDQMCoMOh3LkcrwbxNHJcKtEZkytGNnsqtPsmCocEJsaKr6dB0RXjxVsII0 fXnKlehpCBr4JdTy4snb/Cc3GCNneDoCNhn7XLFwRSSHF+pbDJEC1wPotxgyKpBXJzZ/fX SXH/ZTYJf6BgPGyaiAFhWjFGyG6EwUm6vICCQg1m2uU5bJe8tOHWHLdTNw6UnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665287972; a=rsa-sha256; cv=none; b=oqqiOELEXEFEu7CsyoK4ZCdohxcfBOH96NgVduDyL5GXVrPX64EhRImabar1s4x7UkS0C/ 3TtAJCCZIdNueLRZWshV3fmlHhucPrmJJFgmSg8JrpqbvthSYPZrjQcfryxxUktP4obeZF OHbT8csxuLb1bJzEktH+U1xRhuNVoTI4eUsMn3zQzsTmMO9FyxRSMPAcDmktJMcuYbUFIE yyyic3XfdEoGIRGMJNEwNipbqbSHhYtQUN/jpH3ulALyTNRMbWPcV7bKqx2IOzVcxuZ6wL OQXXiRG5afs7o8mS/BNYQansytNSQAg3JmYsUbiNLXNm+YJzWGdn+WuNp15YPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jlQj3UW9; dmarc=pass (policy=none) header.from=gmail.com; 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: -1.89 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jlQj3UW9; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: DA50AF785 X-Spam-Score: -1.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: DcbP8tsrs1m0 [I am adding Rudolf's email back to CC just in case] Max Nikulin writes: >> Should we then modify the test to set locale explicitly? > > Rudolf cited the context of this test and "C" locale is explicitly used > there. Oops. Missed it. Thanks for the clarification. >> Note that Rudolf is using Emacs 29. > > and macOS, so libc and locales version may be different as well. [Max, correct me if my further suggestion is wrong.] Rudolf, can you (1) try sort in terminal to confirm that "C" locale behaves as expected in MacOS; (2) If sort works fine, you may consider reporting Emacs bug. > If libc is sane (assuming that sort is linked to the same libc) > > printf 'a\nb\n' | LC_COLLATE=C sort > printf 'b\na\n' | LC_COLLATE=C sort > printf 'A\nB\n' | LC_COLLATE=C sort > printf 'B\nA\n' | LC_COLLATE=C sort > printf 'a\nb\n' | LC_COLLATE=C.UTF-8 sort > printf 'b\na\n' | LC_COLLATE=C.UTF-8 sort > printf 'A\nB\n' | LC_COLLATE=C.UTF-8 sort > printf 'B\nA\n' | LC_COLLATE=C.UTF-8 sort > > then you might face an Emacs bug. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at