Re: Reader vs. inputstream...

2012-07-06 Thread Robert Muir
On Fri, Jul 6, 2012 at 3:57 AM, Dawid Weiss wrote: >> LOOOL! Too funny, insane! Let's make a beer party! > > I agree. > > And seriously, no matter what the JDK developers are saying about it > -Dfile.encoding=UTF-16 rocks at finding things like this... I have a > batch of fixes, will commi

Re: Reader vs. inputstream...

2012-07-06 Thread Dawid Weiss
> LOOOL! Too funny, insane! Let's make a beer party! I agree. And seriously, no matter what the JDK developers are saying about it -Dfile.encoding=UTF-16 rocks at finding things like this... I have a batch of fixes, will commit soon. Dawid ---

RE: Reader vs. inputstream...

2012-07-06 Thread Uwe Schindler
1 AM > To: dev@lucene.apache.org > Subject: Reader vs. inputstream... > > OMG! Whoever wrote this owes me a beer :) > > TestSolrCoreProperties: > > private void copyFile(File src, File dst) throws IOException { > BufferedReader in = new BufferedReader(new FileReader

Reader vs. inputstream...

2012-07-06 Thread Dawid Weiss
OMG! Whoever wrote this owes me a beer :) TestSolrCoreProperties: private void copyFile(File src, File dst) throws IOException { BufferedReader in = new BufferedReader(new FileReader(src)); Writer out = new FileWriter(dst); for (String line = in.readLine(); null != line; line = in.