On 11 October 2013 23:03, Andy Parker <[email protected]> wrote:
> On Fri, Oct 11, 2013 at 1:38 PM, Jos Backus <[email protected]> wrote:
>
>>
>>
>> On Friday, October 11, 2013 12:54:00 PM UTC-7, Erik Dalén wrote:
>>>
>>> What is the locale setting here? Is it C or a UTF-8 locale?
>>>
>>
>> In my setup (CentOS 6.3), 'locale' says POSIX. One "fix" is to set
>> LANG=en_US.UTF-8 in the environment.
>>
>>>
>>> If it is C it is really a rpm bug, but Puppet should probably handle
>>> those as well.
>>>
>>
> How would puppet be able to figure this out? We set the locale to C
> (puppet does that when it executes commands) and then we got UTF-8 text. We
> could scan the output and guess about the encoding, but there are plenty of
> cases where that will go wrong.
>
Don't know really. Probably just fallback to UTF-8 if locale is C and text
contains non ASCII characters. If it is invalid UTF-8 I guess it would have
to bail out like this.
But I mean as it is a RPM bug Puppet basically has to work around it or
reimplement the parts of RPM it needs to read package lists itself.
>
>
>>
>> Good luck getting that fixed :)
>>
>> But forcing the encoding like that might actually cause problems for
>>> people on a ISO-8859 locale or EUC-JP and stuff.
>>>
>>
>> Yeah. Locales are fun.
>>
>>
> Yeah, we can't force the encoding :(
>
>
>> Btw, this is a bad bug because it breaks file { ensure => latest; }.
>>
>> Filed http://projects.puppetlabs.com/issues/22848
>>
>> Thanks,
>> Jos
>>
>>
>>>
>>>
>>> On 11 October 2013 13:58, Peter Meier <[email protected]> wrote:
>>>
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> On 10/11/2013 02:00 AM, Jos Backus wrote:
>>>> > One of our RPM packages has some UTF-8 characters in its
>>>> > description, leading to an exception ("Error: Could not prefetch
>>>> > package provider 'yum': invalid byte sequence in US-ASCII") in
>>>> > rpm.rb, causing no packages to be upgraded as the yumhelper.py
>>>> > invocation code raises that error. I'm using the following
>>>> > workaround:
>>>>
>>>> can you make a ticket with your patch attached? ->
>>>> http://projects.puppetlabs.**com/ <http://projects.puppetlabs.com/>
>>>>
>>>> Thanks!
>>>>
>>>> ~pete
>>>>
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG v1.4.14 (GNU/Linux)
>>>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>>>
>>>> iEYEARECAAYFAlJX5/**AACgkQbwltcAfKi39CfACfbkG9q4Rc**+VkEQkKScdzp0Wl1
>>>> oT8AmwdPANx17i6smcycn1xVbK7DcV**Pt
>>>> =p55u
>>>> -----END PGP SIGNATURE-----
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Puppet Developers" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to puppet-dev+...@**googlegroups.com.
>>>> To post to this group, send email to [email protected].
>>>>
>>>> Visit this group at
>>>> http://groups.google.com/**group/puppet-dev<http://groups.google.com/group/puppet-dev>
>>>> .
>>>> For more options, visit
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>
>>>
>>>
>>> --
>>> Erik Dalén
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/puppet-dev.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Andrew Parker
> [email protected]
> Freenode: zaphod42
> Twitter: @aparker42
> Software Developer
>
> *Join us at PuppetConf 2014, September 23-24 in San Francisco*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-dev.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Erik Dalén
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.