[Reproducible-builds] locale woes

Reiner Herrmann reiner at reiner-h.de
Sun May 29 17:29:33 UTC 2016


Hi Scarlett,

On Sat, May 28, 2016 at 06:45:09PM -0700, Scarlett Clark wrote:
> Hi all, so after some help I have compiled this a few times with different
> locales and LC_ALL settings and I cannot seem to reproduce this silly
> symbol. I am not convinced
> I am doing it right though. It gets dropped more often than not. Any
> suggestions welcome so that I can convince upstream to encode the generated
> files utf-8 which DOES work, I just have to prove it.

I was also able to easily reproduce it:

$ LC_ALL=C kconfig_compiler nowlisteningsettings.kcfg nowlisteningsettings.kcfgc
$ grep ItemString nowlisteningsettings.cpp 
  mTemplateStringItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "templateString" ), mTemplateString, QString::fromUtf8( " %title% by %artist% from %album% [%player%]" ) );
$ LC_ALL=C.UTF-8 kconfig_compiler nowlisteningsettings.kcfg nowlisteningsettings.kcfgc
$ grep ItemString nowlisteningsettings.cpp 
  mTemplateStringItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "templateString" ), mTemplateString, QString::fromUtf8( "ᐅ %title% by %artist% from %album% [%player%]" ) );

-> It behaves wrong with LC_ALL set to C (or any other non-UTF8 locale).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160529/a3cc20ff/attachment.sig>


More information about the Reproducible-builds mailing list