Bug 29640

Summary: Perl gettext doesn't support some unicode character in translated string
Product: Mageia Reporter: papoteur <yvesbrungard>
Component: RPM PackagesAssignee: Perl Stack Maintainers <perl>
Status: NEW --- QA Contact:
Severity: major    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA8TOO
Source RPM: perl-Locale-gettext-1.70.0-13.mga8.src.rpm CVE:
Status comment:

Description papoteur 2021-11-10 13:14:00 CET
When the translated string contains Unicdoe '…', Perl script crashes with:
Wide character at /usr/lib64/perl5/vendor_perl/Locale/gettext.pm line 226.

How reproducible:


Steps to Reproduce:
1. Install shutter
2. Run this script:

use POSIX qw/setlocale/;
use Locale::gettext;
$d = Locale::gettext->domain("shutter");
$d->dir( "/usr/share/locale");
print $d->get('Rename');
print $d->get('_Rename...');

The last line causes the crash when the environment is French, because the translation is "_Renommer…"
papoteur 2021-11-10 13:35:22 CET

Version: 8 => Cauldron
Whiteboard: (none) => MGA8TOO

papoteur 2021-11-10 18:25:17 CET

Blocks: (none) => 25183

Jani Välimaa 2021-11-11 16:54:06 CET

Blocks: 25183 => (none)