
jira at apache
Jul 3, 2009, 3:53 AM
Post #2 of 2
(214 views)
Permalink
|
|
[jira] Updated: (LUCENE-1730) TrecContentSource should use a fixed encoding, rather than system dependent
[In reply to]
|
|
[ https://issues.apache.org/jira/browse/LUCENE-1730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shai Erera updated LUCENE-1730: ------------------------------- Attachment: LUCENE-1730.patch Added content..source.encoding to ContentSource (default=null) and set it to ISO-8859-1 in TrecContentSource and UTF-8 in LineDocSource (in case someone wants to use a line file that wasn't created w/ WriteLineDocTask), unless a different encoding is specified. Updated CHANGES and Javadocs. All tests pass. > TrecContentSource should use a fixed encoding, rather than system dependent > --------------------------------------------------------------------------- > > Key: LUCENE-1730 > URL: https://issues.apache.org/jira/browse/LUCENE-1730 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/benchmark > Reporter: Shai Erera > Fix For: 2.9 > > Attachments: LUCENE-1730.patch, LUCENE-1730.patch > > > TrecContentSource opens InputStreamReader w/o a fixed encoding. On Windows, this means CP1252 (at least on my machine) which is ok. However, when I opened it on a Linux machine w/ a default of UTF-8, it failed to read the files. The patch changes it to use ISO-8859-1, which seems to be the right one (and http://mg4j.dsi.unimi.it/man/manual/ch01s04.html mentions this encoding in its example of a script which reads the data). > Patch to follow shortly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe [at] lucene For additional commands, e-mail: java-dev-help [at] lucene
|