Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2009 20:23:07 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 168727 for review
Message-ID:  <200909202023.n8KKN7mD013049@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=168727

Change 168727 by gabor@gabor_server on 2009/09/20 20:22:23

	- Make -f really non case-sensitive

Affected files ...

.. //depot/projects/soc2008/gabor_textproc/newsort/coll.c#8 edit

Differences ...

==== //depot/projects/soc2008/gabor_textproc/newsort/coll.c#8 (text+ko) ====

@@ -190,24 +190,18 @@
 	else if (!iswpunct(c1) && iswpunct(c2))
 		return (1);
 
-	if (iswupper(c1) && !iswupper(c2))
-		return (1);
-	else if (!iswupper(c1) && iswupper(c2))
-		return (-1);
-	else {
-		wchar_t	*s1, *s2;
+	wchar_t	*s1, *s2;
 
-		s1 = sort_malloc(2 * sizeof(wint_t));
-		s2 = sort_malloc(2 * sizeof(wint_t));
+	s1 = sort_malloc(2 * sizeof(wint_t));
+	s2 = sort_malloc(2 * sizeof(wint_t));
 
-		s1[0] = towlower(c1);
-		s1[1] = L'\0';
+	s1[0] = towlower(c1);
+	s1[1] = L'\0';
 
-		s2[0] = towlower(c2);
-		s2[1] = L'\0';
+	s2[0] = towlower(c2);
+	s2[1] = L'\0';
 
-		return (wcscoll(s1, s2));
-	}
+	return (wcscoll(s1, s2));
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909202023.n8KKN7mD013049>