View previous topic :: View next topic |
Author |
Message |
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Fri Nov 11, 2005 2:22 pm Post subject: Bug: Incorrect behaviour with UTF-16 encoded file |
|
|
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 |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Fri Nov 11, 2005 2:54 pm Post subject: Re: Bug: Incorrect behaviour with UTF-16 encoded file |
|
|
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.
I'll add this to the fix-it list. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|