[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#47885: [PATCH] org-table-import: Make it more smarter for intera
From: |
Utkarsh Singh |
Subject: |
Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use |
Date: |
Tue, 18 May 2021 15:54:28 +0530 |
On 2021-05-16, 23:24 +0700, Maxim Nikulin <manikulin@gmail.com> 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
- Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use, (continued)
- Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use, Maxim Nikulin, 2021/05/16
- Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use, Utkarsh Singh, 2021/05/17
- Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use,
Utkarsh Singh <=
- Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use, Maxim Nikulin, 2021/05/18
- Re: bug#47885: [PATCH] org-table-import: Make it more smarter for interactive use, Utkarsh Singh, 2021/05/18