ALT Linux Bugzilla
– Attachment 16577 Details for
Bug 51075
Embedding perl breaks locale in application
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch from ubuntu package.
unbreak-locale-initialization.diff (text/plain), 1.03 KB, created by
Victor Wagner
on 2024-08-06 14:06:02 MSK
(
hide
)
Description:
patch from ubuntu package.
Filename:
MIME Type:
Creator:
Victor Wagner
Created:
2024-08-06 14:06:02 MSK
Size:
1.03 KB
patch
obsolete
>From: Niko Tyni <ntyni@debian.org> >Date: Fri, 12 Jan 2024 16:11:08 +0000 >Subject: Revert "locale.c: Do uselocale() earlier in init process" > >This unbreaks locale initialization when embedding perl until upstream >has a proper fix. > >This reverts Perl upstream commit 7af2d2037375d58e700f9e1b217efb2c4db66133. > >Bug-Debian: https://bugs.debian.org/1060679 >Bug: https://github.com/Perl/perl5/issues/21366 >--- > locale.c | 5 ----- > 1 file changed, 5 deletions(-) > >diff --git a/locale.c b/locale.c >index 86f6b28..57e6d32 100644 >--- a/locale.c >+++ b/locale.c >@@ -5283,11 +5283,6 @@ Perl_init_i18nl10n(pTHX_ int printwarn) > DEBUG_Lv(PerlIO_printf(Perl_debug_log, "created C object %p\n", > PL_C_locale_obj)); > >- /* Switch to using the POSIX 2008 interface now. This would happen below >- * anyway, but deferring it can lead to leaks of memory that would also get >- * malloc'd in the interim */ >- uselocale(PL_C_locale_obj); >- > # ifdef USE_LOCALE_NUMERIC > > PL_underlying_numeric_obj = duplocale(PL_C_locale_obj);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51075
: 16577