Re: BUG #3730: Creating a swedish dictionary fails
От | Alvaro Herrera |
---|---|
Тема | Re: BUG #3730: Creating a swedish dictionary fails |
Дата | |
Msg-id | 20071109135602.GE2768@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: BUG #3730: Creating a swedish dictionary fails (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: BUG #3730: Creating a swedish dictionary fails
|
Список | pgsql-bugs |
Tom Lane wrote: > Penty Wenngren <penty.wenngren@dgc.se> 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.
В списке pgsql-bugs по дате отправления: