ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5837] - Unable to build when project file contains double-byte characters
Date Tue, 15 Jan 2002 14:55:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5837>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5837

Unable to build when project file contains double-byte characters





------- Additional Comments From sean.pritchard@ncr.com  2002-01-15 06:55 -------
Disregard the 2nd attachment (01/15/02 06:42).  It's completely the wrong file. 

Our UTF-8 is being generated by a guy from Denmark on a Win2000 computer set up 
for the Danish language with a Danish keyboard.  Analyzing the characters as:
<   p   r   o   j   e   c   t  sp   n   a   m   e   =   "   T
e   s   t   F   X   E   "  sp   d   e   f   a   u   l   t   =

is exactly the problem.  The project name is not "TestFXE"  It is "Test" 
followed by several characters whose names I do not know.  They look like a 
capital A and E pushed together, followed by a capital O with a diagonal slash 
through it, followed by a capital A with a circle over it.  I agree that when 
analyzed byte by byte, the trailing quote diappears.  I argue that when these 
are analyzed char by char using a java.io.Reader and the default encoding (UTF-
8, I believe), the characters come out correctly.

As an example of this, you could take my first example attachment and use a 
java.io.FileInputStream to read it and the a java.io.FileOutputStream to write 
it to a new file.  Then do the same, but use a FileReader and FileWriter.  You 
will see the Reader/Writer experiement keeps the characters intact.  Using the 
stream causes my machine to generate a "?" in the place of each of the extended 
characters.  

When I modified the ProjectHelper class to use an InputStreamReader instead of 
an input stream, everything worked fine (see original post).

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message