gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: -revert old rfc confusion.


From: gnunet
Subject: [gnunet] branch master updated: -revert old rfc confusion.
Date: Wed, 16 Feb 2022 14:41:52 +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 001fd2d79 -revert old rfc confusion.
001fd2d79 is described below

commit 001fd2d790b0b011b24c42b25d30fa4b964bc965
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Feb 16 14:41:46 2022 +0100

    -revert old rfc confusion.
---
 src/gnsrecord/gnsrecord_misc.c |  2 +-
 src/util/strings.c             | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/gnsrecord/gnsrecord_misc.c b/src/gnsrecord/gnsrecord_misc.c
index b63142d5a..70a3f645e 100644
--- a/src/gnsrecord/gnsrecord_misc.c
+++ b/src/gnsrecord/gnsrecord_misc.c
@@ -40,7 +40,7 @@
 char *
 GNUNET_GNSRECORD_string_normalize (const char *src)
 {
-  /*FIXME: We may want to follow RFC3491 a bit more (Nameprep)*/
+  /*FIXME: We may want to follow RFC5890/RFC5891 */
   return GNUNET_STRINGS_utf8_normalize (src);
 }
 
diff --git a/src/util/strings.c b/src/util/strings.c
index 75e45ba6d..a77f09022 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -432,12 +432,11 @@ GNUNET_STRINGS_utf8_normalize (const char *input)
   uint8_t *tmp;
   size_t len;
   char *output;
-  tmp = u8_tolower ((uint8_t *) input,
-                    strlen ((char *) input),
-                    NULL,
-                    UNINORM_NFKC,
-                    NULL,
-                    &len);
+  tmp = u8_normalize (UNINORM_NFC,
+                      (uint8_t *) input,
+                      strlen ((char*) input),
+                      NULL,
+                      &len);
   if (NULL == tmp)
     return NULL;
   output = GNUNET_malloc (len + 1);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]