Menu

#7 Arbitrary restrictions in fmt_newheadword()

closed-rejected
nobody
None
5
2004-09-18
2004-09-03
Anonymous
No

Although dictfmt normally refuses to produce
dictionaries containing 8-bit characters, there is
nothing in dictd or dict which makes other encodings
(such as Latin-1) unusable, so the following code in
fmt_newheadword() is an unnecessary, arbitrary
restriction and can be safely removed:

if (locale [0] == 'C' && locale [1] == 0){
if (contain_nonascii_symbol (word)){
fprintf (stderr, "\n8-bit head word \"%s\"is
encountered while \"C\" locale is used\n", word);
exit (1);
}
}

Consequently, contain_nonascii_symbol() may also be
removed.

--Leah <qleah@earthlink.net>

Discussion

  • Aleksey Cheusov

    Aleksey Cheusov - 2004-09-18

    Logged In: YES
    user_id=587312

    To build 8-bit and utf-8 dictionaries compatible with DICTD
    you MUST specify --locale option to dictfmt.
    See dictfmt(1)

     
  • Aleksey Cheusov

    Aleksey Cheusov - 2004-09-18
    • status: open --> closed-rejected
     
MongoDB Logo MongoDB