From: Rob Browning <rlb@defaultvalue.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 56413@debbugs.gnu.org
Subject: bug#56413: [PATCH 1/1] scm_i_utf8_string_hash: compute u8 chars not bytes
Date: Mon, 07 Nov 2022 23:05:34 -0600 [thread overview]
Message-ID: <87mt92ujc1.fsf@trouble.defaultvalue.org> (raw)
In-Reply-To: <87zgd3vpb7.fsf@trouble.defaultvalue.org>
Rob Browning <rlb@defaultvalue.org> writes:
> OK, so unfortunately I don't actually recall how I came up with that
> number, but I can start over with some canonical approach to compute the
> value if we like.
I hacked up hash.c to let me call wide_string_hash() directly and
printed the hash for wchar_t {0x3A0, 0x3B5, 0x3C1, 0x3AF}, which should
be what the optimized utf-8 code is consuming.
I saw 4029223418961680680. I double-checked via (symbol-hash
'Περί) from the terminal, and that returned the same value.
Oh, and unless I'm missing something, I remembered why we may need to
keep the standalone C test program -- there's no straightforward way to
call scm_from_utf8_symbol() from scheme?
Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
next prev parent reply other threads:[~2022-11-08 5:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 1:23 bug#56413: [PATCH 1/1] scm_i_utf8_string_hash: compute u8 chars not bytes Rob Browning
2022-07-06 3:04 ` Rob Browning
2022-11-05 22:18 ` Ludovic Courtès
2022-11-06 16:44 ` Rob Browning
2022-11-06 17:45 ` Rob Browning
2022-11-07 13:06 ` Ludovic Courtès
2022-11-06 19:46 ` Rob Browning
2022-11-07 13:07 ` Ludovic Courtès
2022-11-08 5:05 ` Rob Browning [this message]
2022-11-08 10:09 ` Ludovic Courtès
2023-03-05 22:21 ` bug#56413: [PATCH v2 " Rob Browning
2023-03-06 16:39 ` Ludovic Courtès
2023-03-12 19:30 ` bug#56413: [PATCH v3 " Rob Browning
2023-03-13 11:29 ` Ludovic Courtès
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mt92ujc1.fsf@trouble.defaultvalue.org \
--to=rlb@defaultvalue.org \
--cc=56413@debbugs.gnu.org \
--cc=ludo@gnu.org \
/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).