Tom Lane wrote: > Penty Wenngren <[EMAIL PROTECTED]> writes: > > I used iconv to convert svenska.aff and svenska.datalist (from > > iswedish-1.2.1) to UTF-8. The converted files can be found at: > > http://www.lederhosen.org/swedish.affix > > http://www.lederhosen.org/swedish.dict > > I think the reason it's failing right there is that that line is the > first affix rule containing a non-ASCII letter, and the rules are > supposed to only contain letters and certain specific punctuation. > I suspect you are working in a locale that doesn't think à is a > letter --- check lc_ctype.
I patched parse_affentry to report the current token and I see this: alvherre=# CREATE TEXT SEARCH DICTIONARY swedish_ispell ( TEMPLATE = ispell, DictFile = swedish, AffFile = swedish, StopWords = swedish); ERROR: syntax error at line 149 (str: "örs ") of affix file "/home/alvherre/Code/CVS/pgsql/install/00orig/share/tsearch_data/swedish.affix" I am wondering if the newline being included in the token could be causing a problem. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org