I have just released ed-1.6-rc2[1]. I think it fixes all the bugs reported until now.
[1] http://download-mirror.savannah.gnu.org/releases/ed/

The problems related to NUL characters seem to be caused by a stupid typo in regex.c:

--- ed-1.6-rc1/regex.c    2011-03-28 13:34:52.000000000 +0200
+++ ed-1.6-rc2/regex.c    2011-04-13 14:00:46.000000000 +0200
@@ -45,7 +45,7 @@
 /* translate characters in a string */
static void translit_text( char * p, int len, const char from, const char to )
   {
-  while( --len > 0 )
+  while( --len >= 0 )
     {
     if( *p == from ) *p = to;
     ++p;


Best regards,
Antonio.

_______________________________________________
bug-ed mailing list
bug-ed@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to