public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin@cygwin.com
Cc: jaakov@ro.ru
Subject: Re: xcalc comma doesn't work properly under de_DE.UTF-8
Date: Sat, 01 Feb 2014 15:07:00 -0000	[thread overview]
Message-ID: <52ED0DA2.10309@dronecode.org.uk> (raw)
In-Reply-To: <1391261213.884324.4397.6260@mail.rambler.ru>

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

  reply	other threads:[~2014-02-01 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-01 13:26 jaakov jaakov
2014-02-01 15:07 ` Jon TURNEY [this message]
2014-02-01 18:40   ` jaakov jaakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52ED0DA2.10309@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    --cc=jaakov@ro.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).