texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/convert/convert_html.c (html_acce


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/convert_html.c (html_accent_entities_html_accent_internal): remove debugging message.
Date: Sat, 30 Dec 2023 04:17:30 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new c77e7635a1 * tp/Texinfo/XS/convert/convert_html.c 
(html_accent_entities_html_accent_internal): remove debugging message.
c77e7635a1 is described below

commit c77e7635a19e94b5b86b5dfba04c0caee24bb399
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Dec 30 10:17:29 2023 +0100

    * tp/Texinfo/XS/convert/convert_html.c
    (html_accent_entities_html_accent_internal): remove debugging message.
    
    * tp/Texinfo/XS/main/unicode.c (format_eight_bit_accents_stack): use
    %X in format instead of using %x and uppercasing.
---
 ChangeLog                            |  8 ++++++++
 tp/Texinfo/XS/convert/convert_html.c |  3 ++-
 tp/Texinfo/XS/main/unicode.c         | 10 ++--------
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 23298c3ab2..dee1a48d11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-12-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/convert_html.c
+       (html_accent_entities_html_accent_internal): remove debugging message.
+
+       * tp/Texinfo/XS/main/unicode.c (format_eight_bit_accents_stack): use
+       %X in format instead of using %x and uppercasing.
+
 2023-12-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/main/unicode.c (format_eight_bit_accents_stack): fix
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index 9be35468e6..69ba663b4e 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -9096,7 +9096,8 @@ html_accent_entities_html_accent_internal (CONVERTER 
*self, const char *text,
           return formatted_accent;
         }
     }
-  fprintf (stderr, "NNNNNNNNNNn %s %s\n", builtin_command_name (element->cmd), 
text_set);
+  /* should only be the case of @dotless, as other commands have a diacritic
+     associated, and only if th eargument is not i nor j. */
   return text_set;
 }
 
diff --git a/tp/Texinfo/XS/main/unicode.c b/tp/Texinfo/XS/main/unicode.c
index 1d293e50e0..27cc6ee53a 100644
--- a/tp/Texinfo/XS/main/unicode.c
+++ b/tp/Texinfo/XS/main/unicode.c
@@ -232,19 +232,13 @@ format_eight_bit_accents_stack (CONVERTER *self, const 
char *text,
       ucs4_t first_char;
       u8_next (&first_char, encoded_u8);
       if (first_char < 127)
-        xasprintf(&new_eight_bit, "%02lx", first_char);
+        xasprintf(&new_eight_bit, "%02lX", first_char);
       else
         {
           char *codepoint;
           if (first_char <= 0xFFFF)
             {
-              char *p;
-              xasprintf (&codepoint, "%04lx", first_char);
-              for (p = codepoint; *p; p++)
-                {
-                  if (isascii_lower (*p))
-                    *p = toupper (*p);
-                }
+              xasprintf (&codepoint, "%04lX", first_char);
               char *found = (char *)bsearch (&codepoint,
                              unicode_to_eight_bit[encoding_index].codepoints,
                              unicode_to_eight_bit[encoding_index].number,



reply via email to

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