Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Mar 2026 03:46:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 293659] Dictionaries are not sorted
Message-ID:  <bug-293659-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293659

            Bug ID: 293659
           Summary: Dictionaries are not sorted
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: jwillia3@proton.me

The dictionary files in /usr/share/dict are not sorted.

I don't know if anything in base is actually using these, but I would expect
these files to be sorted. The port bsd-spell recommends
     All word (and stop) lists must be sorted in lexicographical order with
     case folded.  The simplest way to achieve this is to use “sort -df”.  If
     the word files are incorrectly sorted, bspell will not be able to operate
     correctly.


Ex:
export LC_ALL=C.UTF-8; i=/usr/share/dict/words; sort -df $i >a; diff $i a
31894d31893
< caulk
31916a31916
> caulk
78898d78897
< gooey
78928a78928
> gooey
99811d99810
< Jean-Pierre
99817a99817
> Jean-Pierre

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

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