Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growl.Connector does not work with mono on unix systems #48

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments
Open

Growl.Connector does not work with mono on unix systems #48

GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant