From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Simen_Heggest=C3=B8yl?= Newsgroups: gmane.emacs.devel Subject: Re: csv-mode =?utf-8?Q?can=E2=80=99t?= guess separator when =?utf-8?Q?it=E2=80=99s?= the unit separator #x1f Date: Wed, 29 May 2024 08:55:10 +0200 Message-ID: <87ttih3y5t.fsf@runbox.com> References: <87bk4qt7l9.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39001"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Titus von der Malsburg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 29 08:56:30 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sCDEb-0009te-FB for ged-emacs-devel@m.gmane-mx.org; Wed, 29 May 2024 08:56:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCDDe-0002xO-8R; Wed, 29 May 2024 02:55:30 -0400 Original-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 1sCDDX-0002wv-FG for emacs-devel@gnu.org; Wed, 29 May 2024 02:55:25 -0400 Original-Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCDDU-0001v5-Fp for emacs-devel@gnu.org; Wed, 29 May 2024 02:55:22 -0400 Original-Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1sCDDM-001EVd-F3 for emacs-devel@gnu.org; Wed, 29 May 2024 08:55:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=KCvejw4swfrjJoi8+RVZDb1Cw8nqpqygVb2fh00oM84=; b=J4MdXOAoaz2gxWLDwXsePw56ZG 6uHzWYIghnVKIkvyXyTU/dZD/OP3mUwj54+ihqGGNkRVN5cqCCqWHxZEc7c4fW8mYdbXSP141pc34 XevrmsoOh892YFaQJlkU29Kad0KKXu40SY2G7Yc6t5neY9fgxR++BZnEaMyhoSbT5FPCQUVdvPzeg k3CYfij2N8OHObctmxzb+y6YJwBUBNpeftguiwt0wygLUXohMa3kmItJC3IW6DtG5U0elwIqzcLqx E2K3SG8PF7GerA1P16F+LuUqRkxT2n6NONW/DYkx0CiCJL52PnW+2TuqcncakmoOZSnC1u+Yna7Ba ZT2aUeRw==; Original-Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1sCDDM-0001RH-19; Wed, 29 May 2024 08:55:12 +0200 Original-Received: by submission01.runbox with esmtpsa [Authenticated ID (963757)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1sCDDK-00DWOf-Tn; Wed, 29 May 2024 08:55:10 +0200 In-Reply-To: <87bk4qt7l9.fsf@posteo.de> (Titus von der Malsburg's message of "Tue, 28 May 2024 12:53:32 +0000") Received-SPF: pass client-ip=2a0c:5a00:149::26; envelope-from=simenheg@runbox.com; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319671 Archived-At: Titus von der Malsburg writes: > Hi, > > I=E2=80=99m using the unit separator ASCII #x1f in =E2=80=9Ccsv=E2=80=9D = files, because that=E2=80=99s more robust than using comma or tab (which ma= y both be used as part of the data, which creates ambiguity). The unit sep= arator was created precisely for this purpose. > > Since various characters are conventionally used as separators, csv-mode = has a convenient function for guessing the separator. (It=E2=80=99s typica= lly, the one character which has the same number of appearances on all line= s of the file.) Unfortunately, csv-mode currently does not consider the un= it separator as a candidate when guessing. Below is a patch that fixes tha= t. Could someone please apply this patch? This list is specified as the m= aintainer in the source file. > > Thank you. > > Titus Thanks Titus, I've applied the patch. -- Simen