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 UG1bD6Cdo2CGUgEAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 12:57:36 +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 2PUhC6Cdo2ADHQAAB5/wlQ (envelope-from ) for ; Tue, 18 May 2021 10:57:36 +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 6EC7FFDD8 for ; Tue, 18 May 2021 12:57:35 +0200 (CEST) Received: from localhost ([::1]:45132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lixPq-0001LX-5L for larch@yhetil.org; Tue, 18 May 2021 06:57:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liwtj-0005zk-PT for emacs-orgmode@gnu.org; Tue, 18 May 2021 06:24:23 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:46055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liwti-0008FW-1O for emacs-orgmode@gnu.org; Tue, 18 May 2021 06:24:23 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d16so7040333pfn.12 for ; Tue, 18 May 2021 03:24:21 -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=3zTiJLPoLrlNCc0i9Img3Qw4OKDURAyftVU859r3iw0=; b=Sh3MU+q+mSIMbozrhAIO8K6S5BD4/PziIegn9eFUt0yPh5Rmduefiuyex7MIyyGk+h NxX9/Z358wfPiWaT1AT1YbWfIFVSylJBonIEDZRbFeAJ45VVZTv+nnmLJxfKYye68a3p dlg1j/JnD0jVp4e9aVCgFRNzKA/iiv7XkTsML/I5ds/ZuZBQZp0rOPE4YDakhKvg83GV h1Z0oKupqsO/+GHAOL8j1zG93cYLwJdQG1g6+prqPu5c/x7inGEKChLKd6ud5iP7Az74 vA4xLKwNYlStEk6WAPmFtPrRpfswPpkGHj2HmbbExoV6bWH2E48xyPlzQcWfjyKSrqfC mtdg== 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=3zTiJLPoLrlNCc0i9Img3Qw4OKDURAyftVU859r3iw0=; b=KukIHMHt/RhlVlXVOEZmbcuWsZtE0PD9poFuhvEI5pvcXw0vdYAgqtAzT+M+niGIIy onWRcHaGOtYQBnMeZj+GNZeMN18dGxAZ1p8JAK4tA4wdP811vjwmxDaH43epFZjNLQMN Lb8F2BNWRkOkhOE2GmilqwjxzJEhILslIHLZGKmqcJtgPwwxPIBdioarwsI7hDTYfaVm n/E4/2IkH76MUvB5i52XDHzv1FKHbU9ajMF+ANbUw8YzW73LgTQkXKdr69daknTr06+t cW2JPhKGnMdxoVRpC9Ni+ZzCOpsSBatp7y0EmM7OcWNp7Y3VPtiYgNDo0WFt1/igPAZ2 Xr2w== X-Gm-Message-State: AOAM5328GrsYhXNT0jHY8n5ImROQso9ptaqguNK+E3LIzmlvEv26kIgB o2VLxRB+LO777k9oINmA8Ls= X-Google-Smtp-Source: ABdhPJyWtRau4t5F/OAhuVoJ+i+viN3EMAXIF6+vvteccppHP+G9AXJF4mjYmca69kjhsVwCpVWK8w== X-Received: by 2002:a65:550e:: with SMTP id f14mr4380243pgr.160.1621333460259; Tue, 18 May 2021 03:24:20 -0700 (PDT) Received: from localhost ([103.77.0.147]) by smtp.gmail.com with ESMTPSA id y25sm10626220pfm.20.2021.05.18.03.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 03:24:19 -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> Date: Tue, 18 May 2021 15:54:28 +0530 Message-ID: <87a6osfig3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=utkarsh190601@gmail.com; helo=mail-pf1-x42f.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=1621335456; 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=3zTiJLPoLrlNCc0i9Img3Qw4OKDURAyftVU859r3iw0=; b=j1QFHmTJe5aEa1ppGbt31Q46V75L0vGJsXivedPfketxx1ozMkEsvaf0B2LTYl4LJRD+up /5l/KTclWmEUj4KSbNN7Ynkwm/CBzMiyu7ESUZXJazcWGvJ2j04rjAmw7MA/lzthBP+Mfg YiSiUsXw6GdlJCDrSdv7NOQH95BrMbz38oyVL6rnG0hUIOYNzF2tOYszu27Z+W30Vk/PLf fsXPon+5jf6yWBxlFiW1eFsxETjb3ZTPbKXLn5GJeoJDYTld3PhCcpysmVXuE6gMVhvI+k MA0pksDFhz+HvjPO4/1ectBHzBEZL+XEl1J3K9sbDyYVtJqhjtAf2qQXjp85iA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621335456; a=rsa-sha256; cv=none; b=S5GabT6fTTcVPTEyIvObM5ptnP9K4pphdB8h4sGsxfDrg44LWd53nSBMHTSSHaZJzCq1MK NepmCM1wAPiLegDj9mWYRz2w4BwwtOuSpG+oeX2Px5qAoJdLV5HKYUyTA55x/b1zGt3pnx qkkZN9SqW8LdOiENymxLLVTtqxZ8dxvCKvESLgEOofY/mdjbUiqfIa62f7mEFB+C8Zd9it fpYbLH+WEyb7Qr0q7JcqEaJ3mYngLcB/O8fXEqzBDIqnFyfKQYi3oJ4WEm5NUhKI+Z5f6L n5pOfrNS16AawFAXqtI8jk66j8xni/3S8/Ydo670y2OaXGafKoW3tv+o2LohwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Sh3MU+q+; 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.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Sh3MU+q+; 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: 6EC7FFDD8 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: AxQPUI9FIhzI On 2021-05-16, 23:24 +0700, Maxim Nikulin wrote: > On 14/05/2021 21:54, Utkarsh Singh wrote: >> On 2021-05-13, 00:08 +0700, Maxim Nikulin wrote: >> >>> Comma is decimal separator for es_ES, de_DE, ru_RU, etc. The point is >>> that order in which separator candidates are tried should depend on >>> active locale. >>> >> I am willing to work on this problem but before this can you identify >> any other locale with similar problem or a resource from where I can >> information's about locale. > > I do not think list of locales should be hard coded. I am not familiar > with elisp enough to tell you if locale properties such as decimal > separator are exposed through some function. I expect, it is quite > probable. As a last measure, some number, e.g. 0.5 or 1.5 could be > formatted using a locale-aware function and result string could be > checked if it contains ",". 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))) 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. -- Utkarsh Singh http://utkarshsingh.xyz