Red Hat Bugzilla – Bug 236529
[oocalc] [bn-IN] date input in english automatically gets converted to bengali digits
Last modified: 2013-03-03 21:21:14 EST
Description of problem:
Date typed in english in the Bengali India locale gets converted to bengali
instead of remaining in english.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. start OpenOffice Calc in Bengali India locale: LANG=bn_IN.UTF-8 oocalc &
2. Check that the bn keyboard is *not* selected as the input method
2. type in a date in the format 12-04-2007
3. press "Enter" and leave the cell
date typed in english automatically converts to bengali digits
date typed in english should remain in english
The digit conversion happens only for date formats. other numbers typed in
english remain in english.
date typed in bengali remains unchanged after leaving the cell.
This behaviour is due to the [NatNum1] specifications as described here:
I am putting sayamindu dasgupta in the cc for this bug as he had modified the
bn_IN.xml locale file to include this feature.
Created attachment 152669 [details]
screenshot of oocalc bn_IN with date written in english converted to bengali due to the [NatNum1] specification
The default date format is used to display automatically detected dates in calc,
it will not matter what language-specific digits they are entered with. If they
are entered as bengali or english they are both then displayed in the default
format. So if the default format is changed to not have [NatNum1] then they will
all be displayed in english digits.
So "data typed in english should remain in english" and "data typed in bengali
remains unchanged" is the current situation, changing the default for bengali to
not have NatNum1 will result in "data typed in english remains unchanged" and
"data typed in bengali should remain in bengali". You *cannot* retain dates
typed in bengali digits in bengali format, and those typed in english in english
format. A decision needs to be taken as to what is the better default one to use.
But it is the case that or_IN, hi_IN, ml_IN etc don't have a [NatNum1] as their
default date format. Perhaps there is sufficiently similar reasoning for the
decision for those languages that might influence the bn_IN/bn_BD .xmls
I think we can remove the [NatNum1] tag from Bengali locale files. It seems
bn_BD.xml is using bn_IN.xml's <LC_FORMAT>, so the patch is needed for bn_IN.xml
Hope Sayamindu will submit a patch in upstream.
Issue submitted upstream:
semi-consensus is good enough for me, remove of NatNum1 checked into devel, will
be in >= openoffice_org-2.2.0-14.7