Issue #22848 has been updated by Charlie Sharpsteen.
Status changed from Unreviewed to Needs More Information
Keywords set to utf8 encoding package
On CentOS and Debian Wheezy, I can only re-produce this if I explicitly force
Puppet to run in an ASCII locale:
<pre>
# LANG=C LC_ALL=C puppet resource package
Error: Could not run: invalid byte sequence in US-ASCII
# puppet resource package
package { 'acpi':
ensure => '1.6-1',
}
package { 'acpi-support-base':
ensure => '0.140-5',
}
package { 'acpid':
ensure => '1:2.0.16-1',
}
...
</pre>
Dara, the Debian bug report you linked to mentions that "Puppet should not use
the user provided locale to decode package descriptions, because dpkg-query
always outputs utf8". Does anyone know of some official documentation that
states this to be true for dpkg? I.e. that UTF-8 will always be output?
Forcing strings to be UTF-8 won't solve the root cause of this unless we can
find some guarantees around the output encoding of various package managers.
----------------------------------------
Bug #22848: Encoding bug in Puppet 3.3.1 when using Ruby 1.9.3 (and above)
https://projects.puppetlabs.com/issues/22848#change-99857
* Author: Jos Backus
* Status: Needs More Information
* Priority: High
* Assignee:
* Category: ruby19
* Target version:
* Affected Puppet version: 3.3.1
* Keywords: utf8 encoding package
* Branch:
----------------------------------------
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.
Priority=High because it breaks file { ensure => latest; }.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs.
For more options, visit https://groups.google.com/groups/opt_out.