This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xcalc comma doesn't work properly under de_DE.UTF-8


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]