growl-for-windows icon indicating copy to clipboard operation
growl-for-windows copied to clipboard

Growl.Connector does not work with mono on unix systems

Open GoogleCodeExporter opened this issue 9 years ago • 0 comments

What steps will reproduce the problem?
1. Modify the test app to send notifications to a mac or windows growl server. 
Run the test app with mono on a unix system

What is the expected output? What do you see instead?

Should see notifications, but no notifications show up.

What version of the product are you using? On what operating system?

trunk
mono
Linux and Mac

Please provide any additional information below.

GNTP requires "\r\n" as line endings, but the MessageBuilder is using 
Environment.Newline to add line endings. On Unix systems, this will be "\n", 
which is incorrect. The following diff fixes the bug:

Index: MessageBuilder.cs
===================================================================
--- MessageBuilder.cs   (revision 137)
+++ MessageBuilder.cs   (working copy)
@@ -194,7 +194,7 @@
         /// <summary>
         /// Byte array containing the bytes the represent a blank line
         /// </summary>
-        protected static readonly byte[] blankLineBytes = 
GetStringBytes(Environment.NewLine);
+        protected static readonly byte[] blankLineBytes = 
GetStringBytes("\r\n");

         /// <summary>
         /// The bytes of the section

Original issue reported on code.google.com by [email protected] on 8 Aug 2014 at 3:12

GoogleCodeExporter avatar Mar 13 '15 18:03 GoogleCodeExporter