Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25857/src/gui
Modified Files:
wxComposeView.cpp
Log Message:
fixed another bug in text/binary detection code
Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.412
retrieving revision 1.413
diff -b -u -2 -r1.412 -r1.413
--- wxComposeView.cpp 28 Jun 2006 15:30:19 -0000 1.412
+++ wxComposeView.cpp 28 Jun 2006 15:55:15 -0000 1.413
@@ -221,5 +221,5 @@
// and check if there are any non-alnum characters among them and,
// also, if there are any new lines
- char buf[256];
+ unsigned char buf[256];
ssize_t len = file.Read(buf, WXSIZEOF(buf));
if ( len != -1 )
@@ -229,5 +229,5 @@
for ( ssize_t n = 0; n < len && !ctrl; n++ )
{
- const char ch = buf[n];
+ const unsigned char ch = buf[n];
switch ( ch )
{
@@ -246,5 +246,5 @@
}
- isBinary = !ctrl && eol;
+ isBinary = ctrl || !eol;
}
}
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates