[Pkg-puppet-devel] Bug#782494: puppet: Non-ASCII user realnames cause encoding errors when running with a UTF-8 locale
Cédric Barboiron
ced at winkie.fr
Thu May 28 12:46:16 UTC 2015
tags 782494 + patch
thanks
Hi,
This is indeed related to upstream bug #22703. The fix to this bug is no longer
needed, since ruby Etc module now handles encoding correctly (from ruby 2.1.0)
commit 4c009414119347e87d9bb2402617a4585dd3f341
Author: nobu <nobu at b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sat Aug 3 00:46:10 2013 +0000
etc.c: encodings
* ext/etc/etc.c (setup_passwd, setup_group): set proper encodings to
string members.
Test with the following user : useradd -c 'éèéù' test
Just before this commit (at 042e5013a3bc42a3637aa1646e9fc002436b852f) :
ruby -retc -e 'p Etc.getpwnam("test").gecos.encoding'
#<Encoding:ASCII-8BIT>
At commit 4c009414119347e87d9bb2402617a4585dd3f341 :
ruby -retc -e 'p Etc.getpwnam("test").gecos.encoding'
#<Encoding:UTF-8>
The following patch has been tested successfully on wheezy and jessie.
Regards
--
Cédric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-again-22703-for-ruby-2.1.0.patch
Type: text/x-diff
Size: 898 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20150528/b2d780b6/attachment.patch>
More information about the Pkg-puppet-devel
mailing list