File: SGML-Parser-OpenSP-0.994-Stop-using-deprecated-uvuni_to_utf8_flags.patch

package info (click to toggle)
libsgml-parser-opensp-perl 0.994-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 408 kB
  • sloc: perl: 225; makefile: 10
file content (31 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: error: 'uvuni_to_utf8_flags' was not declared in this scope
 The build failed since Perl 5.37.1. It is caused, because many deprecated C functions were removed.
 https://metacpan.org/release/SHAY/perl-5.37.11/view/pod/perl5371delta.pod#Deprecations
Origin: CPAN RT#148488
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=148488
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=148488
Author: jplesnik@redhat.com
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2023-07-02

diff -up SGML-Parser-OpenSP-0.994/OpenSP.xs.orig SGML-Parser-OpenSP-0.994/OpenSP.xs
--- SGML-Parser-OpenSP-0.994/OpenSP.xs.orig	2023-06-05 09:39:32.643052849 +0200
+++ SGML-Parser-OpenSP-0.994/OpenSP.xs	2023-06-05 09:40:17.152435589 +0200
@@ -162,7 +162,7 @@ SV* SgmlParserOpenSP::cs2sv(const SGMLAp
     {
         d = m_temp;
         for (i = 0; i < s.len; ++i)
-            d = uvuni_to_utf8_flags(d, s.ptr[i], 0);
+            d = uvoffuni_to_utf8_flags(d, s.ptr[i], 0);
         result = newSVpvn((const char*)m_temp, d - m_temp);
     }
     else
@@ -171,7 +171,7 @@ SV* SgmlParserOpenSP::cs2sv(const SGMLAp
         for (i = 0; i < s.len; ++i)
         {
             d = (U8 *)SvGROW(result, SvCUR(result) + UTF8_MAXLEN + 1);
-            d = uvuni_to_utf8_flags(d + SvCUR(result), s.ptr[i], 0); 
+            d = uvoffuni_to_utf8_flags(d + SvCUR(result), s.ptr[i], 0); 
             SvCUR_set(result, d - (U8 *)SvPVX(result));
         }
     }