Евгений Верещагин
2013-Feb-11 12:46 UTC
[Puppet Users] non-US-ASCII charapters in manifests (windows & puppet 3.1)
Puppet 3.1 is released, but problem not fixed. Puppet 3.0 and 2.x don''t test manifest for non-ASCII and write uncorrect characters to system (like file names, folders, files and other) . But now Puppet 3.1 test manifest and stop.<https://lh5.googleusercontent.com/-aRLPbc_OYbA/UQY4w9ivc6I/AAAAAAAAACU/nqH8b5IRbgI/s1600/puppet%2B3.1b2.png> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Josh Cooper
2013-Feb-12 01:26 UTC
Re: [Puppet Users] non-US-ASCII charapters in manifests (windows & puppet 3.1)
On Mon, Feb 11, 2013 at 4:46 AM, Евгений Верещагин <e.vereschagin@gmail.com>wrote:> Puppet 3.1 is released, but problem not fixed. Puppet 3.0 and 2.x don''t > test manifest for non-ASCII and write uncorrect characters to system (like > file names, folders, files and other) . But now Puppet 3.1 test manifest > and stop.<https://lh5.googleusercontent.com/-aRLPbc_OYbA/UQY4w9ivc6I/AAAAAAAAACU/nqH8b5IRbgI/s1600/puppet%2B3.1b2.png> > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >I think you are running into https://projects.puppetlabs.com/issues/17010. The win32-dir gem we are using to return the COMMON_APPDATA directory returns a ruby string in UTF-16LE, which for some reason File.join does not allow. It assumes it is always passed UTF-8 strings, or at least ASCII compatible. To confirm this is the problem, try require ''win32-dir'' File.join(Dir::COMMON_APPDATA, ''b'') If you''re on ruby 1.9, you could patch lib/puppet/util/run_mode.rb, line 78, to read: [Dir::COMMON_APPDATA.encode(''UTF-8''), "PuppetLabs", "puppet"] + extra Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Евгений Верещагин
2013-Feb-12 05:37 UTC
Re: [Puppet Users] non-US-ASCII charapters in manifests (windows & puppet 3.1)
> > I think you are running into https://projects.puppetlabs.com/issues/17010. > The win32-dir gem we are using to return the COMMON_APPDATA directory > returns a ruby string in UTF-16LE, which for some reason File.join does not > allow. It assumes it is always passed UTF-8 strings, or at least ASCII > compatible. >Maybe, there are some issuses about non-ASCII.> To confirm this is the problem, try > > require ''win32-dir'' > File.join(Dir::COMMON_APPDATA, ''b'') > > Where I must write this strings?> If you''re on ruby 1.9, you could patch lib/puppet/util/run_mode.rb, line > 78, to read: > > [Dir::COMMON_APPDATA.encode(''UTF-8''), "PuppetLabs", "puppet"] + extra > > How to migrate from ruby 1.8 to 1.9 if I use official MSI-package? I tryunpack ruby ZIP into c:/program files/Puppet Labs/Puppet/sys/ruby/lib/ruby but it didn''t work. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.