This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: xcalc comma doesn't work properly under de_DE.UTF-8
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin at cygwin dot com
- Cc: jaakov at ro dot ru
- Date: Sat, 01 Feb 2014 15:07:14 +0000
- Subject: Re: xcalc comma doesn't work properly under de_DE.UTF-8
- Authentication-results: sourceware.org; auth=none
- References: <1391261213 dot 884324 dot 4397 dot 6260 at mail dot rambler dot ru>
- Reply-to: cygwin at cygwin dot com
On 01/02/2014 13:26, jaakov jaakov wrote:
> Package: xcalc
> Version: 1.0.5
>
> Problem: Input digits after the decimal separator (comma in German) are
> ignored for computation.
> Steps to reproduce:
> A. Make sure that the LANG shell variable is set to "de_DE.UTF-8" .
> B. Start xcalc from the shell.
> C. Using mouse, press the following screen buttons in the xcalc window:
> 1
> .
> 1
> x^2
> D. Observe that the result is 1, which is wrong, since the square of 1.1 is 1.21.
>
> If in step A the LANG would be set to, say, "en", the result would be a
> correct 1.21.
> If in step A we keep the German locale but in step C we would press pi, and
> then x^2, the after-dot-digits would be considered again.
>
> Please fix the bug!
This behaviour appears to be due a problem with cygwin's sscanf() in the
de_DE.UTF-8 locale, apparently already fixed in the latest snapshot. See [1].
[1] http://cygwin.com/ml/cygwin/2013-12/msg00294.html
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple