Re: invalid utf-8 sequence

2009-01-06 Thread Jarrett Billingsley
On Tue, Jan 6, 2009 at 10:34 PM, james wrote: >> Not that I know of, for D anyway. > > i just found out about a function 'UnicodeFile' in tango, but im using D1.0 > and phobos, maybe i should write one of my own. > It wouldn't help you anyway. UnicodeFile reads.. uh, Unicode files. Your file is

Re: invalid utf-8 sequence

2009-01-06 Thread james
Jarrett Billingsley Wrote: > On Tue, Jan 6, 2009 at 9:20 PM, james wrote: > > Jarrett Billingsley Wrote: > > > >> On Tue, Jan 6, 2009 at 8:04 PM, james wrote: > >> > im writing an indexer, but im having a problem because on some file, > >> > when i read gives this error > >> > > >> > Error 4: i

Re: invalid utf-8 sequence

2009-01-06 Thread Jarrett Billingsley
On Tue, Jan 6, 2009 at 9:20 PM, james wrote: > Jarrett Billingsley Wrote: > >> On Tue, Jan 6, 2009 at 8:04 PM, james wrote: >> > im writing an indexer, but im having a problem because on some file, when >> > i read gives this error >> > >> > Error 4: invalid UTF-8 sequence >> > >> > is there a w

Re: listdir alternative

2009-01-06 Thread BCS
Reply to James, im trying to recursively read large folders but it seems listdir fails to get all file list. out of 2,000 files i only get 11 files. is there any other portable solution, since im writing a program which suppose to run on windows and linux. IIRC listdir is not recursive. It wo

Re: invalid utf-8 sequence

2009-01-06 Thread james
Jarrett Billingsley Wrote: > On Tue, Jan 6, 2009 at 8:04 PM, james wrote: > > im writing an indexer, but im having a problem because on some file, when i > > read gives this error > > > > Error 4: invalid UTF-8 sequence > > > > is there a way to fix it. > > > > You're probably reading a file th

listdir alternative

2009-01-06 Thread james
im trying to recursively read large folders but it seems listdir fails to get all file list. out of 2,000 files i only get 11 files. is there any other portable solution, since im writing a program which suppose to run on windows and linux.

Re: invalid utf-8 sequence

2009-01-06 Thread Stewart Gordon
james wrote: im writing an indexer, but im having a problem because on some file, when i read gives this error Error 4: invalid UTF-8 sequence is there a way to fix it. Probably, but since you've decided not to post your code, nobody can tell you for sure what that way is. Moreover, wha

Re: invalid utf-8 sequence

2009-01-06 Thread Jarrett Billingsley
On Tue, Jan 6, 2009 at 8:04 PM, james wrote: > im writing an indexer, but im having a problem because on some file, when i > read gives this error > > Error 4: invalid UTF-8 sequence > > is there a way to fix it. > You're probably reading a file that's encoded in some non-Unicode encoding, like

invalid utf-8 sequence

2009-01-06 Thread james
im writing an indexer, but im having a problem because on some file, when i read gives this error Error 4: invalid UTF-8 sequence is there a way to fix it.

Re: Window procedure declaration

2009-01-06 Thread Stewart Gordon
Stewart Gordon wrote: John Reimer wrote: There are many win32 functions missing from std.c.windows.windows. Check www.dsource.org/projects/core32 for a more complete D win32 import. That one's old and, by the looks of it, no longer maintained. You want this one: http://www.dsource.org/proj

Re: Window procedure declaration

2009-01-06 Thread Stewart Gordon
John Reimer wrote: There are many win32 functions missing from std.c.windows.windows. Check www.dsource.org/projects/core32 for a more complete D win32 import. That one's old and, by the looks of it, no longer maintained. You want this one: http://www.dsource.org/projects/bindings/wiki/Wind

Re: Associative array .idup

2009-01-06 Thread Daniel de Kok
On 2009-01-03 23:11:08 +0100, Daniel de Kok said: In D2, given that associative arrays do not have the 'idup' property, what's the canonical way of making an invariant copy of an existing associative array? Nobody? ;)

Re: Two Tango container package

2009-01-06 Thread Lars Ivar Igesund
Sam Hu wrote: > OK,so which one is equivelant to ArrayBag in the container module?I found > Vector is not the same as c++ std::vector<>does,while ArrayBag in the > collection module looks more like.If the collection module deprecates in > the future,which one in the container module will act as Ar