Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Josh Cooper commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line Glenn Sarti Sean McDonald I think this belongs in PA, moving it over. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Josh Cooper commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line Ruby should be using wmain, and wchar_t **argv: int main(int argc, char **argv) { #ifdef RUBY_DEBUG_ENV ruby_set_debug_option(getenv("RUBY_DEBUG")); #endif #ifdef HAVE_LOCALE_H setlocale(LC_CTYPE, ""); #endif ruby_sysinit(, );
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Josh Cooper commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line FWIW, it works correctly on other platforms (eg OSX): $ bx puppet apply -e "notify { '☃': }" Notice: Compiled catalog for XXX in environment production in 0.02 seconds Notice: ☃ Notice: /Stage[main]/Main/Notify[☃]/message: defined 'message' as '☃' Notice: Applied catalog in 0.04 seconds Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Ethan Brown updated an issue Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Ethan Brown Team: Agent & Platform Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Ethan Brown assigned an issue to Ethan Brown Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Ethan Brown Assignee: Ethan Brown Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Ethan Brown assigned an issue to Unassigned Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Ethan Brown Assignee: Ethan Brown Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Ethan Brown commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line A couple of options that we have to address this: Alter the way that the Start Command Prompt with Puppet operates - we could do things like: set the font to Lucia Console chcp 65001 to establish Unicode This is something that we'd want to document in our user guide so that no one is caught off guard. In the batch files that we launch ruby based tools with (i.e. puppet.bat), we can use set RUBYOPT=-EUTF8 to establish the default external encoding. This has pretty broad consequences, so we might want to think hard about doing that. Just modifying the special Puppet command prompt may be a good stopgap solution until we can evaluate the impact of using RUBYOPT. See also PE-13721 / https://github.com/puppetlabs/puppetlabs-puppet_enterprise/pull/703/files Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Michael Smith commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line Indeed. This is something we had to handle with all our C++ applications, that led to the recommendations at https://github.com/puppetlabs/cppbestpractices/blob/master/01-Getting-Started.md#handling-inputoutput. Since Ruby is C, it probably needs a patch to call Windows' CommandLineToArgvW and GetCommandLineW, or use a wmain function. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Larissa Lane updated an issue Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Larissa Lane Labels: i18n utf-8 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Steve Barlow updated an issue Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Steve Barlow Sprint: Windows Triage Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Glenn Sarti updated an issue Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Glenn Sarti Sprint: Windows Triage Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Glenn Sarti commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line Confirmed it's a ruby thing. Created two text files (C:\test.rb and C:\.rb) And tried to invoke ruby to run them C:\source\puppet [master ≡]> ruby c:\test.rb UTF8 test ᚠᛇᚻ C:\source\puppet [master ≡]> ruby c:\ᚠᛇᚻ.rb C:\tools\ruby21\bin\ruby.exe: Invalid argument -- c:/???.rb (LoadError) C:\source\puppet [master ≡]> chcp 65001 Active code page: 65001 C:\source\puppet [master ≡]> ruby c:\ᚠᛇᚻ.rb C:\tools\ruby21\bin\ruby.exe: Invalid argument -- c:/???.rb (LoadError) C:\source\puppet [master ≡]> ruby -v
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Glenn Sarti commented on PUP-6234 Re: Puppet does not accept UTF8 on the command line The command line is already corrupted by the time it gets to' bin/puppet:5 lib/puppet/util/command_line.rb:65 This appears to be a ruby limitation moreso than puppet failure Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Glenn Sarti updated an issue Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Glenn Sarti Acceptance Criteria: Should be able to pass UTF8 characters on the command line and be interpretted correctly. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6234) Puppet does not accept UTF8 on the command line
Title: Message Title Glenn Sarti moved an issue Puppet / PUP-6234 Puppet does not accept UTF8 on the command line Change By: Glenn Sarti Key: FM PUP - 5159 6234 Project: Forge Modules [Internal] Puppet Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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 puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.