[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -tolower again, use NFKC
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -tolower again, use NFKC |
Date: |
Tue, 15 Feb 2022 20:04:34 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 9c0ac480c -tolower again, use NFKC
9c0ac480c is described below
commit 9c0ac480cb4148a0970c915a7d8aadc2ca47874d
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Feb 15 20:04:30 2022 +0100
-tolower again, use NFKC
---
src/gnsrecord/gnsrecord_misc.c | 2 +-
src/gnsrecord/gnunet-gnsrecord-tvg.c | 10 +++++-----
src/util/strings.c | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/gnsrecord/gnsrecord_misc.c b/src/gnsrecord/gnsrecord_misc.c
index 4cc77b59f..9b5e47c4c 100644
--- a/src/gnsrecord/gnsrecord_misc.c
+++ b/src/gnsrecord/gnsrecord_misc.c
@@ -52,7 +52,7 @@ GNUNET_GNSRECORD_string_normalize (const char *src)
{
char *res;
res = GNUNET_strdup (src);
- //GNUNET_STRINGS_utf8_tolower (src, res);
+ GNUNET_STRINGS_utf8_tolower (src, res);
GNUNET_STRINGS_utf8_normalize (src, res);
return res;
}
diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c
b/src/gnsrecord/gnunet-gnsrecord-tvg.c
index f89c0d2fb..4afa458f1 100644
--- a/src/gnsrecord/gnunet-gnsrecord-tvg.c
+++ b/src/gnsrecord/gnunet-gnsrecord-tvg.c
@@ -92,7 +92,7 @@ print_bytes (void *buf,
static void
print_record (const struct GNUNET_GNSRECORD_Data *rd)
{
-
+ uint16_t flags = htons(rd->flags);
fprintf (stdout,
"EXPIRATION: %" PRIu64 "\n", rd->expiration_time);
fprintf (stdout,
@@ -101,7 +101,7 @@ print_record (const struct GNUNET_GNSRECORD_Data *rd)
"TYPE: %d\n", rd->record_type);
fprintf (stdout,
"FLAGS: ");
- print_bytes ((void*)&rd->flags, sizeof (rd->flags), 8);
+ print_bytes ((void*)&flags, sizeof (flags), 8);
printf ("\n");
fprintf (stdout,
"DATA:\n");
@@ -413,7 +413,7 @@ run (void *cls,
rd[0].record_type = GNUNET_DNSPARSER_TYPE_AAAA;
rd[0].flags = GNUNET_GNSRECORD_RF_NONE;
- rd[1].data = "Some nick";
+ rd[1].data = "\u611b\u79f0";
rd[1].data_size = strlen (rd[1].data);
rd[1].expiration_time = exp2.abs_value_us;
rd[1].record_type = GNUNET_GNSRECORD_TYPE_NICK;
@@ -426,9 +426,9 @@ run (void *cls,
rd[2].flags = GNUNET_GNSRECORD_RF_SUPPLEMENTAL |
GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION;
run_pkey (&rd_pkey, 1, "testdelegation");
- run_pkey (rd, 3, "testset");
+ run_pkey (rd, 3, "\u65b0 Name System");
run_edkey (&rd_pkey, 1, "testdelegation");
- run_edkey (rd, 3, "testset");
+ run_edkey (rd, 3, "\u65b0 Name System");
}
diff --git a/src/util/strings.c b/src/util/strings.c
index ece096f72..c63870e42 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -433,7 +433,7 @@ GNUNET_STRINGS_utf8_normalize (const char *input,
uint8_t *tmp;
size_t len;
- tmp = u8_normalize (UNINORM_NFC,
+ tmp = u8_normalize (UNINORM_NFKC,
(uint8_t *) input,
strlen ((char*) input),
NULL,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -tolower again, use NFKC,
gnunet <=