From 22bce9903f2e57d8ffe2e2db54f2009fd1ddb4f6 Mon Sep 17 00:00:00 2001
From: Lars Kanis <kanis@comcard.de>
Date: Wed, 1 Feb 2012 17:40:18 +0100
Subject: [PATCH] Replace PLATFORM with RUBY_PLATFORM and respect other
 platforms, too. Fixes
 http://rubyforge.org/tracker/index.php?func=detail&aid=28740&group_id=300&atid=1223

---
 lib/fox16/core.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/fox16/core.rb b/lib/fox16/core.rb
index 401f8ea..4b5cbaf 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
-- 
GitLab