From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wCLWGcTZo2DuVAAAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 17:14:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KOaaFcTZo2C5TwAAB5/wlQ (envelope-from ) for ; Tue, 18 May 2021 15:14:12 +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 C04FC14D85 for ; Tue, 18 May 2021 17:14:11 +0200 (CEST) Received: from localhost ([::1]:50638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj1QA-000632-M8 for larch@yhetil.org; Tue, 18 May 2021 11:14:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj1Hr-00031k-I8 for emacs-orgmode@gnu.org; Tue, 18 May 2021 11:05:37 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:43824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj1Hp-0007Az-Ci for emacs-orgmode@gnu.org; Tue, 18 May 2021 11:05:35 -0400 Received: by mail-pj1-x102d.google.com with SMTP id ep16-20020a17090ae650b029015d00f578a8so1704783pjb.2 for ; Tue, 18 May 2021 08:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=bO0qSVpeWDBrejN7V9HQ6N05K5fhEYNLVbTFKxosqKs=; b=VnFFKGzleshDUj5ukNgFdgxoW3lgFZH6Hjd3xXpZkymNeUV9of6PcaW0fgmE6ZOD3R x9uwr+czwvKxx1JxeX0lUSnmNtLEmPYSLMYsYgRYv7LvDPTpstGMy3DLsPDu6sfXBs/u TLi5BtRzeZSMIbS3Meu3vvstcpGRUpd4r8JfnV4YdL6ZALgkIDl8C1MymbYpo2wXcoD2 0rMCVym6g697BoWMFnEZHVQLKa6JTAyVrO8v3oIcbQIEm+IeQ+ZcA5mdlwpkYVOJ2iTe 6MsMm7EDEGJWnouF1PjodzDMIqewWMN1vPsoDuDd6IFvDPkuSQ0by4mfYPTn7RqpQpl4 /wmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=bO0qSVpeWDBrejN7V9HQ6N05K5fhEYNLVbTFKxosqKs=; b=BZGKKgeCP/QDaakFt9uWixuxexG48YiPhOzdGClMcZ8GLn8A7VW+ZCAfOzL7tLJjj3 8bEIBxsd1/jEeVlk4oe8XyB8Eq4S0HDMJOt/j9jEPtm7FovRWbDXmTGWRVn1FoDdUzf6 ntl9nthAygb9CuT2LrzO43Of5h6umQFRUfHcfEj5QrOFYQEce2M4iVOJTxykDZpRdaLB gmW7KNWzduCN5dwBs3E5EoeKowRKZQbBkvWJ2k436zSlBQCQUJYV8MVxnqrOCw4r3kya uswYrPV2LI+rkXY5XHTRJAYFufsGLy1TdgvcnijoJv20MPQsq6FzarOGraGYKVntp/dK OpCw== X-Gm-Message-State: AOAM530xAIgvjUIkznGS9SDZbH8TyRlJ+URBaecFfOO4JkUR1MeSzBPb NxhBKBjV6MUnqFbx12k7jsw= X-Google-Smtp-Source: ABdhPJw0lwAbwsRdvo4z4uC6cnzIOBanEohvvWLlDczd9125cBkjVqPTHY2l1dEaVsUJZKR6JPuxKA== X-Received: by 2002:a17:90a:b88d:: with SMTP id o13mr341916pjr.207.1621350330974; Tue, 18 May 2021 08:05:30 -0700 (PDT) Received: from localhost ([103.77.0.147]) by smtp.gmail.com with ESMTPSA id 6sm2231927pjm.21.2021.05.18.08.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 08:05:30 -0700 (PDT) From: Utkarsh Singh To: Maxim Nikulin , emacs-orgmode@gnu.org Subject: Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use In-Reply-To: References: <87czuq9958.fsf@gmail.com> <8735vmelfs.fsf@nicolasgoaziou.fr> <87k0oyfj4y.fsf@gmail.com> <87im4h9irn.fsf@nicolasgoaziou.fr> <87zgxpwqa7.fsf@gmail.com> <875z07jx6n.fsf@nicolasgoaziou.fr> <87tunqby9a.fsf@gmail.com> <875yzq77w8.fsf@gmail.com> <87o8dd74dv.fsf@gmail.com> <87a6osfig3.fsf@gmail.com> Date: Tue, 18 May 2021 20:35:37 +0530 Message-ID: <8735ukf5fi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=utkarsh190601@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621350851; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=bO0qSVpeWDBrejN7V9HQ6N05K5fhEYNLVbTFKxosqKs=; b=LRpeqqH/X2zCT/uHucs4j8qr4biW59j0FoMADwqfiJUeIi78GQxDeoqAvBHvFE9WZbKxs4 NJyYA5turv32fhymU7hK2ZFpIU6US3vnNIW0uPACC9FEPAmEMOby3PJkmwfKLCVdKV4kj/ MCOnwX0tPDLxl2eQ5b0LE0j20W8+037QLqyJ02ln1THWEf4nUliGX6AEz1NZWfx7PRGjP/ zvEauyjXNV8Ccje8wzvP27Chn/Td63kY/KeEsZlOKDUrD7C3h2eipDJpgyFFFZl2X77rlO ItmfFtwu9FTz8InjJMCftBHudf6+IRYlUOMrrBHLNbHhTUXjoPHaMVKhhvHVSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621350851; a=rsa-sha256; cv=none; b=ObVrQ0EJ0pQ8triFraXA1+DgC2UICdTrJgKwsB9o/E72r71G7tWgrKyOIsR8xZuo7qLNPW 6EAiEli73JF/gtTWRQAKML96KS53nx/pqDpo5HoGrEGTaEJ4POe9WYAqpuCJ7WyuuQe+3j QMco2aFK9+A9B5HuzK7zjCQuI3xgS7BX6ES/Rk1XK5xcgDVTsMPppvAm54be5ECecXr202 m3KLUrrYudbsGyvg2KB0OQneskHsq1P1ZuSY4/5Y6HsC/DDaQi+sxlPX+4U3lYn1fS4Vcg /qimCU9wKEOtDmED2mm0D1PnGleSnJhIobGZqSwsMB2y2UpWdEeJP4e1DoGcOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=VnFFKGzl; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -3.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=VnFFKGzl; dmarc=pass (policy=none) header.from=gmail.com; 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: C04FC14D85 X-Spam-Score: -3.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: FvFVbC/CDmnX On 2021-05-18, 19:31 +0700, Maxim Nikulin wrote: > The question may be risen in emacs-devel but I am unsure if I will > participate in discussion. Why? >> Can you test this function: >> >> (defun org-table--comma-as-decimal-sep () >> "Return nil or 2 if separator is dot or comma respectively." >> (string-search "," (format "%f" 10))) > > No, it does not work. `format' always uses dot. It is reasonable when > e.g. during writing a config file or during data exchange when locales > must be ignored. > > I was too optimistic. I did not expect that support of locales are so > poor in Emcacs. I do not see any traces of localeconv(3) in sources that > would allow to get value of decimal_point directly. > > Numbers are forced to use "C" locale and I have not noticed any way to > override it. Initial settings: > > http://git.savannah.gnu.org/cgit/emacs.git/tree/src/emacs.c#n1490 > > http://git.savannah.gnu.org/cgit/emacs.git/tree/src/emacs.c#n2861 > > setlocale (LC_NUMERIC, "C"); > Hmm, so this means that Elisp cannot read something like this '10,1' as floating point number. >> To test I am using: $ LANG=de_DE.UTF-8 emacs -Q >> >> But I am getting this as warning: >> (process:1787): Gtk-WARNING **: 15:40:49.375: Locale not supported by C library. >> Using the fallback 'C' locale. > > You get this error due to you have not generated this locale. On debian > & ubuntu > > dpkg-reconfigure locales > > allows to select desired locales and performs all necessary actions. Thanks! I have fixed it now. -- Utkarsh Singh http://utkarshsingh.xyz