svn commit: r1934428 - subversion/trunk/subversion/libsvn_subr

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177926788054.1163280.13558043911838526981@svn03-he-fi>
Author: rinrab
Date: Wed May 20 09:04:40 2026
New Revision: 1934428

Log:
Use utf8proc_int32_t instead of apr_int32_t for the codepoint since it's the
type that the utf8proc API uses.

* subversion/libsvn_subr/utf8proc.c
  (svn_utf_cstring_utf8_width, utf8_skipn): Use better type for the local
   variables.

Suggested by: kotkov

Modified:
   subversion/trunk/subversion/libsvn_subr/utf8proc.c

Modified: subversion/trunk/subversion/libsvn_subr/utf8proc.c
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/utf8proc.c	Wed May 20 09:00:30 2026	(r1934427)
+++ subversion/trunk/subversion/libsvn_subr/utf8proc.c	Wed May 20 09:04:40 2026	(r1934428)
@@ -619,7 +619,7 @@ svn_utf_cstring_utf8_width(const char *c
    * utf8proc_iterate() does all the error checking we might ever need. */
   while (*cstr)
     {
-      apr_int32_t ucs;
+      utf8proc_int32_t ucs;
       int w;
 
       int nbytes = utf8proc_iterate((apr_byte_t*)cstr, -1, &ucs);
@@ -647,7 +647,7 @@ utf8_skipn(const char *cstr, apr_size_t
 
   while (*cstr && i < n)
     {
-      apr_int32_t ucs;
+      utf8proc_int32_t ucs;
 
       int nbytes = utf8proc_iterate((apr_byte_t*)cstr, -1, &ucs);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.