all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 7460@debbugs.gnu.org
Subject: bug#7460: 23.2.90; temacs needs LANG=C, build will fail if not.
Date: Sun, 21 Nov 2010 15:34:33 -0500	[thread overview]
Message-ID: <jwvk4k6whaz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4CE970E9.809@swipnet.se> ("Jan Djärv"'s message of "Sun, 21 Nov 2010 20:20:09 +0100")

>>> Invalid hash table rehash size: 1\,5
>> Where does this "1,5" come from?
> src/lisp.h:#define DEFAULT_REHASH_SIZE 1.5
> Apparently this code in fns.c, Fmake_hash_table somehow turns it into 1,5.

>   /* Look for `:rehash-size SIZE'.  */
>   i = get_key_arg (QCrehash_size, nargs, args, used);
>   rehash_size = i < 0 ? make_float (DEFAULT_REHASH_SIZE) : args[i];
>   if (!NUMBERP (rehash_size)
>       || (INTEGERP (rehash_size) && XINT (rehash_size) <= 0)
>       || XFLOATINT (rehash_size) <= 1.0)
>     signal_error ("Invalid hash table rehash size", rehash_size);

Hmm... I can't think of any way this code could turn the 1.5 float into
a "1,5" symbol.

>>> , is not a decimal point in my locale.
> Correction, I meant to say . is not a decimal point in my locale.  , is.

So apparently some code somewhere prints the 1.5 float in a locale-aware
way and then reads it back in with the Lisp reader.


        Stefan





  reply	other threads:[~2010-11-21 20:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-21 14:23 bug#7460: 23.2.90; temacs needs LANG=C, build will fail if not Jan Djärv
2010-11-21 18:07 ` Eli Zaretskii
2010-11-21 18:58 ` Stefan Monnier
2010-11-21 19:20   ` Jan Djärv
2010-11-21 20:34     ` Stefan Monnier [this message]
2010-11-22 21:58       ` Jan Djärv
2010-11-22 22:46         ` Andreas Schwab
2010-11-23  6:32           ` Jan Djärv
2010-11-23 17:00             ` Jan Djärv
2010-11-23 17:47               ` Stefan Monnier

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=jwvk4k6whaz.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=7460@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.