ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <>
Subject RE: Problem with FixCRLF
Date Wed, 04 Jun 2003 01:38:36 GMT
Credit Conor one wager..

So for HTML files one could help <fixcrlf> with the use of a fileset to
exclude those SHIFT_JIS files provided the charset attribute is set.
What is one to do with those free form files (*.txt)? Embed comments to
declare encodeing?

<target name="non.nippondenso.fixcrlf.tgt">
  <fileset dir="${webroot.dir}" includes="**/*.html">
       <contains text="charset=SHIFT_JIS" casesensitive="no"/>
  <fixcrlf srcdir="${webroot.dir}" eol="lf"
     defaultexcludes="yes" >

-----Original Message-----
From: Conor MacNeill []
Sent: Tuesday, June 03, 2003 5:04 PM
To: Ant Users List
Subject: Re: Problem with FixCRLF

On Wed, 4 Jun 2003 08:12 am, W. Sean Hennessy wrote:
> I'll wager the fixcrlf task is not multi-byte char set capable.

I'll take that wager :-)

The fixcrlf task is multi-byte capable but, as Antoine stated, you need to
tell it the encoding used for the files to be processed. The encoding
attribute allows you to specify this and it defaults to the platform default
encoding, which in many cases is not multi-byte. This has been available
since Ant 1.5


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message