Jira (PUP-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-12-20 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  PUP-5717 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 
 
Also - DBCS codepages should work (as they have historically) on Windows - https://www.curlybrace.com/words/2014/10/03/windows-console-and-doublemulti-byte-character-set/ 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-09-06 Thread Ethan Brown (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Ethan Brown commented on  PUP-5717 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 
 
Similarly, http://stackoverflow.com/a/38694885 talks about command prompt tweaks. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-05-24 Thread Larissa Lane (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Larissa Lane updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5717 
 
 
 
  Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 

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-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-01-19 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5717 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 
 
Found the cause of the issue. The default font used for CMD.EXE does not support unicode characters and was throwing an error. 
Repro Steps; Open CMD.EXE Set an environment variable with a unicode character List all environment environment vars. The env var will display and may or may not garble the value Change the code page to UTF8 (chcp 65001) List all environment vars. The env var will not display and an error message of "The system cannot write to the specified device" will be shown. 
To workaround: Change the font for cmd.exe to Lucinda Console or Consolas; anything but Raster Fonts. 
The default Raster Fonts is not capable of display some characters in the unicode set. 
Refs: http://stackoverflow.com/questions/2706097/how-to-do-proper-unicode-and-ansi-output-redirection-on-cmd-exe 
http://stackoverflow.com/questions/2492077/output-unicode-strings-in-windows-console-app 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-01-15 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-5717 
 
 
 
  Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2016/01/15 2:07 PM 
 
 
 

Environment:
 
 
Windows Server 2012 R2 x64 Ruby 2.1.7p400 Console Host: CMD.EXE Puppet Repo; https://github.com/Iristyle/puppet/tree/ticket/stable/PUP-5538-SID-conversion-failure commit 73a976781cd4d2111ab1a28b9f944282bd678870 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Glenn Sarti 
 
 
 
 
 
 
 
 
 
 
When testing PUP-5538 I could consistently crash ruby 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 

Jira (PUP-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-01-15 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5717 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 
 
While testing PUP-5538 I could consistently crash ruby using the following scenario; 
 

Open CMD.EXE
 
 
 

cd to repo, bundle install etc.
 
 
IMPORTANT Changed the codepage to 65001 (UTF8) 
 
 
 
 
 
 
chcp 65001
 
 
 
 
 
 
 
 

Execute the manifest 
 
 
 
 
 
 
bundle exec puppet apply "C:\dev\aclmodule-test\manifests\site.pp"
 
 
 
 
 
 

 
 
Ruby would crash with the following text; 
 
 
 
 
 
 
DL is deprecated, please use Fiddle 
 
 
 
 
Notice: Compiled catalog for win-edson23cglf.localdomain in environment producti 
 
 
 
 

Jira (PUP-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-01-15 Thread Glenn Sarti (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Glenn Sarti commented on  PUP-5717 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 
 
Strange. Running it in powershell it works fine. Run it in CMD.EXE it crashes. 
As per conversation with Rob, will close this issue for now. Can re-open if it's more than just my computer being setup wrong. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-5717) Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console

2016-01-15 Thread Rob Reynolds (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Rob Reynolds commented on  PUP-5717 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Ruby crash when using Unicode codepage on windows when writing to STDOUT on a console  
 
 
 
 
 
 
 
 
 
 
I ran this in cmd.exe and it worked. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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.