Subject: Re: pkg/12145: Adding German dictionary to ispell
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 02/07/2001 19:09:16
On Wed, Feb 07 2001 at 09:29:42 -0800, Wolfgang Rupprecht wrote:
> 
> Thilo.Manske@HEH.Uni-Oldenburg.DE writes:
> > And I think it fixes the problem of pkg/12144 as well since it raises
> > MASKBITS from the default (32) to 64 (wich is needed by many languages).
> 
> Unfortunately it doesn't fix pkg/12144.  The error looks the same.
Oh sorry. I didn't remember exactly what error I had when I mad "my"
dictionaries... :-)

> My -current /usr/src was cvs-ed on the morning of the Feb. 5.  Perhaps
> this is a problem only with very recent binaries?
> 
>         23 -r-xr-xr-x  1 root  wheel  23076 Feb  5 15:29 /usr/bin/sort*
Yes, munchlist uses the syntax "-tchar" (and not "-t char") wich the "old"
GNU-sort understood, but not the new sort we have in the tree.

The fix for that is an additional patch (works with both sorts):

--- munchlist.X.orig	Mon Jan 23 19:28:27 1995
+++ munchlist.X	Wed Feb  7 18:56:25 2001
@@ -407,7 +407,7 @@
 ispell "$wchars" -c -W0 -d $FAKEHASH -p /dev/null < $STRIPPEDINPUT \
   | tr " " '
 ' \
-  | egrep "$flagmarker" | sort $SORTTMP -u "-t$flagmarker" +0 -1 +1 \
+  | egrep "$flagmarker" | sort $SORTTMP -u "-t $flagmarker" +0 -1 +1 \
   | $JOIN $SIGNED "-t$flagmarker" - $EXPANDEDINPUT > $CRUNCHEDINPUT
 #
 # We now have a list of legal roots, and of affixes that apply to the
@@ -461,7 +461,7 @@
   | (sed -e 's; .*$;;' ; /bin/rm -f $JOINEDPAIRS $EXPANDEDPAIRS) \
   | uniq \
   | (comm -13 - $CRUNCHEDINPUT ; /bin/rm -f $CRUNCHEDINPUT) \
-  | sort $SORTTMP -u "-t$flagmarker" +0f -1 +0 \
+  | sort $SORTTMP -u "-t $flagmarker" +0f -1 +0 \
   | $COMBINE $langtabs > $LEGALFLAGLIST
 
 #
@@ -676,7 +676,7 @@
 	      D
 	      }' \
 	  | comm -23 - $ILLEGALCOMBOS \
-	  | sort $SORTTMP -u "-t$flagmarker" +0f -1 +0 \
+	  | sort $SORTTMP -u "-t $flagmarker" +0f -1 +0 \
 	  | $COMBINE $langtabs > $CROSSROOTS
 	mv $CROSSROOTS $LEGALFLAGLIST
 	if [ "$debug" = yes ]
@@ -715,7 +715,7 @@
   | sort $SORTTMP +1 -2 +2rn -3 +0 -1 \
   | sort $SORTTMP -um +1 -2 \
   | sed -e 's; .*$;;' \
-  | sort $SORTTMP -u "-t$flagmarker" +0f -1 +0 > $MINIMALAFFIXES
+  | sort $SORTTMP -u "-t $flagmarker" +0f -1 +0 > $MINIMALAFFIXES
 /bin/rm -f $LEGALFLAGLIST
 #
 # Now we're almost done.  MINIMALAFFIXES covers some (with luck, most)
@@ -743,10 +743,10 @@
     fi
     (ispell "$wchars" -l -d $FAKEHASH -p /dev/null < $STRIPPEDINPUT; \
 	$COMBINE $langtabs < $MINIMALAFFIXES) \
-      | sort $SORTTMP "-t$flagmarker" -u +0f -1 +0
+      | sort $SORTTMP "-t $flagmarker" -u +0f -1 +0
 else
     # MINIMALAFFIXES is empty;  just produce a sorted version of STRIPPEDINPUT
-    sort $SORTTMP "-t$flagmarker" -u +0f -1 +0 $STRIPPEDINPUT
+    sort $SORTTMP "-t $flagmarker" -u +0f -1 +0 $STRIPPEDINPUT
 fi
 /bin/rm -f ${TMP}*
 if [ "X$MUNCHMAIL" != X ]