FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug: Incorrect behaviour with UTF-16 encoded file

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
phoenix



Joined: 06 Mar 2005
Posts: 68

PostPosted: Fri Nov 11, 2005 2:22 pm    Post subject: Bug: Incorrect behaviour with UTF-16 encoded file Reply with quote

When I run build on a UTF-16 encoded file, build calls the librarian instead of creating an executable. It works fine if the file is in ASCII or UTF-8.
I venture a guess that build is not detecting that "main" is in the file due to differente name enconding?

PS: Why can't I add an attachment?
_________________
Bruno Medeiros
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Fri Nov 11, 2005 2:54 pm    Post subject: Re: Bug: Incorrect behaviour with UTF-16 encoded file Reply with quote

phoenix wrote:
When I run build on a UTF-16 encoded file, build calls the librarian instead of creating an executable. It works fine if the file is in ASCII or UTF-8.
I venture a guess that build is not detecting that "main" is in the file due to differente name enconding?


Ouch! This is because I use std.file.read() to read the file text and this just treats the text as an array of bytes. I then just assume these bytes to be in utf-8 encoding. My mistake. Embarassed

I'll add this to the fix-it list.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group