diff --git a/lib/fox16/core.rb b/lib/fox16/core.rb index 401f8ea0d91a6d3c81770275445f7dcd5d21181b..4b5cbafebffb5ef368537f0fbf1f4adbaa6d9327 100755 --- a/lib/fox16/core.rb +++ b/lib/fox16/core.rb @@ -388,7 +388,7 @@ module Fox # clipboard back into a Ruby string. # def Fox.fxdecodeStringData(data) - if /mswin/ =~ PLATFORM + if /cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM data.chop else data @@ -403,7 +403,7 @@ module Fox # appropriate for the current platform. # def Fox.fxencodeStringData(str) - if /mswin/ =~ PLATFORM + if /cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM str + "\0" else str