Re: [Reproducible-builds] locale woes

2016-05-29 Thread Reiner Herrmann
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).


signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] locale woes

2016-05-28 Thread Scarlett Clark
On Sat, May 28, 2016 at 8:11 AM, Holger Levsen 
wrote:

> On Sat, May 28, 2016 at 08:01:13AM -0700, Scarlett Clark wrote:
> > I need the locale settings for both builders please.
>
> https://tests.reproducible-builds.org/index_variations.html
>
>
> Thanks, now the problem is LC_ALL unset on one of the builders. I am asked
to build with LC_ALL=C on my computer and see if it fixes it.
However, I do not see how that would prove anything, of course it will
build, but that is irrelevant to the "reproducibility". Can anyone advise
me on how to proceed
with this? I have a perfectly working patch that fixes kconfig_compiler by
the way, I just do not want to ruffle any feathers.
Thanks,
Scarlett


> --
> cheers,
> Holger
>
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] locale woes

2016-05-28 Thread Holger Levsen
On Sat, May 28, 2016 at 08:01:13AM -0700, Scarlett Clark wrote:
> I need the locale settings for both builders please.

https://tests.reproducible-builds.org/index_variations.html


-- 
cheers,
Holger


signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] locale woes

2016-05-28 Thread Reiner Herrmann
On Sat, May 28, 2016 at 07:08:40AM -0700, Scarlett Clark wrote:
> I am having some issues with locales. And rejections from all over.

[...]

> Setting export LC_ALL=C.UTF-8 in debian/rules works but rejected as
> "hackish" so after further investigation...
> 
> Yes, it is kconfig_compiler
> 
> And adjusting the code there to encode utf-8 worked and made the build
> reproducible. However,
> I now have upstream questioning why is locale not set in one of the
> builders? I need a good explanation and if possible the settings of these
> builders?

Because builds are not only performed by builders.
Everyone should be able to build packages, and also reproducibly.
But you can't force people to use one specific locale, because they want
to see messages in their own locale/language.
So build tools should produce the same artefacts no matter which
language the current user speaks.

Kind regards,
  Reiner


signature.asc
Description: Digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds