Re: Eclipse/PyDev - BOM Lexical Error

2010-10-31 Thread Fabio Zadrozny
On Mon, Oct 4, 2010 at 5:03 AM, TheOne wrote: > Hi. > > I installed eclipse/pydev today. > I created a pydev project and added python source files with utf-8 > BOM. > Eclipse/Pydev reports lexical error : >  Lexical error at line 1, column 1. Encountered: "\ufeff" (65279), > after : "" > > I want

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-13 Thread Steven D'Aprano
On Thu, 14 Oct 2010 16:41:13 +1300, Lawrence D'Oliveiro wrote: > In message , Ethan > Furman wrote: > >> Lawrence D'Oliveiro wrote: >> >>> In message , >>> Ethan Furman wrote: >>> Lawrence D'Oliveiro wrote: >In message , >Ethan Furman wrote: > MS treats those first three

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-13 Thread Lawrence D'Oliveiro
In message , Ethan Furman wrote: > Lawrence D'Oliveiro wrote: > >> In message , Ethan >> Furman wrote: >> >>>Lawrence D'Oliveiro wrote: >>> In message , Ethan Furman wrote: >>>MS treats those first three bytes as a flag -- if they equal the BOM, MS >>>treats it as UTF-8, if they equ

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-11 Thread Ethan Furman
Lawrence D'Oliveiro wrote: In message , Ethan Furman wrote: Lawrence D'Oliveiro wrote: In message , Ethan Furman wrote: Lawrence D'Oliveiro wrote: But they can only recognize it as a BOM if they assume UTF-8 encoding to begin with. Otherwise it could be interpreted as some other codi

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-11 Thread Lawrence D'Oliveiro
In message , Ethan Furman wrote: > Lawrence D'Oliveiro wrote: > >> In message , Ethan >> Furman wrote: >> >>>Lawrence D'Oliveiro wrote: >>> But they can only recognize it as a BOM if they assume UTF-8 encoding to begin with. Otherwise it could be interpreted as some other coding. >>> >>>

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-10 Thread Ethan Furman
Lawrence D'Oliveiro wrote: In message , Ethan Furman wrote: Lawrence D'Oliveiro wrote: But they can only recognize it as a BOM if they assume UTF-8 encoding to begin with. Otherwise it could be interpreted as some other coding. Not so. The first three bytes are the flag. But this is

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-09 Thread Lawrence D'Oliveiro
In message , Ethan Furman wrote: > Lawrence D'Oliveiro wrote: > >> But they can only recognize it as a BOM if they assume UTF-8 encoding to >> begin with. Otherwise it could be interpreted as some other coding. > > Not so. The first three bytes are the flag. But this is just a text file. All p

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-08 Thread Ethan Furman
Lawrence D'Oliveiro wrote: In message <87hbgyosdc@web.de>, Diez B. Roggisch wrote: Lawrence D'Oliveiro writes: In message <87d3rorf2f@web.de>, Diez B. Roggisch wrote: Lawrence D'Oliveiro writes: What exactly is the point of a BOM in a UTF-8-encoded file? It's a marker like the

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-07 Thread Lawrence D'Oliveiro
In message <87hbgyosdc@web.de>, Diez B. Roggisch wrote: > Lawrence D'Oliveiro writes: > >> In message <87d3rorf2f@web.de>, Diez B. Roggisch wrote: >> >>> Lawrence D'Oliveiro writes: >>> What exactly is the point of a BOM in a UTF-8-encoded file? >>> >>> It's a marker like the "co

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-07 Thread Diez B. Roggisch
Lawrence D'Oliveiro writes: > In message <87d3rorf2f@web.de>, Diez B. Roggisch wrote: > >> Lawrence D'Oliveiro writes: >> >>> What exactly is the point of a BOM in a UTF-8-encoded file? >> >> It's a marker like the "coding: utf-8" in python-files. It tells the >> software aware of it that

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread Lawrence D'Oliveiro
In message <87d3rorf2f@web.de>, Diez B. Roggisch wrote: > Lawrence D'Oliveiro writes: > >> What exactly is the point of a BOM in a UTF-8-encoded file? > > It's a marker like the "coding: utf-8" in python-files. It tells the > software aware of it that the content is UTF-8. But if the softw

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread Terry Reedy
On 10/5/2010 5:13 AM, TheOne wrote: It's a MS-specific thing that makes a file identifieable as UTF-8-encoded under windows. The name BOM is obviously BS, but it's the way it is. I didn't know that it's a MS-thing. (Is it really?) Yes, who else would 'customize' an international standard by

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread Diez B. Roggisch
Lawrence D'Oliveiro writes: > In message > <2752e2e4-76fe-475a-a476-e5458bbfd...@z30g2000prg.googlegroups.com>, TheOne > wrote: > >> Anyway, it would be great if I could make my eclipse/pydev to >> understand the BOM character and suppress the lexical error msg. > > What exactly is the point of

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread Lawrence D'Oliveiro
In message <2752e2e4-76fe-475a-a476-e5458bbfd...@z30g2000prg.googlegroups.com>, TheOne wrote: > Anyway, it would be great if I could make my eclipse/pydev to > understand the BOM character and suppress the lexical error msg. What exactly is the point of a BOM in a UTF-8-encoded file? -- http://

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread TheOne
On Oct 5, 5:10 pm, de...@web.de (Diez B. Roggisch) wrote: > Lawrence D'Oliveiro writes: > > In message > > , TheOne > > wrote: > > >> I want the source files to have BOM character. > > > What exactly is the point of a BOM in a UTF-8-encoded file? > > It's a MS-specific thing that makes a file iden

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread Diez B. Roggisch
TheOne writes: > On Oct 4, 9:26 pm, de...@web.de (Diez B. Roggisch) wrote: >> TheOne writes: >> > Hi. >> >> > I installed eclipse/pydev today. >> > I created a pydev project and added python source files with utf-8 >> > BOM. >> > Eclipse/Pydev reports lexical error : >> >   Lexical error at line

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-05 Thread Diez B. Roggisch
Lawrence D'Oliveiro writes: > In message > , TheOne > wrote: > >> I want the source files to have BOM character. > > What exactly is the point of a BOM in a UTF-8-encoded file? It's a MS-specific thing that makes a file identifieable as UTF-8-encoded under windows. The name BOM is obviously BS,

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-04 Thread Lawrence D'Oliveiro
In message , TheOne wrote: > I want the source files to have BOM character. What exactly is the point of a BOM in a UTF-8-encoded file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-04 Thread TheOne
On Oct 4, 9:26 pm, de...@web.de (Diez B. Roggisch) wrote: > TheOne writes: > > Hi. > > > I installed eclipse/pydev today. > > I created a pydev project and added python source files with utf-8 > > BOM. > > Eclipse/Pydev reports lexical error : > >   Lexical error at line 1, column 1. Encountered:

Re: Eclipse/PyDev - BOM Lexical Error

2010-10-04 Thread Diez B. Roggisch
TheOne writes: > Hi. > > I installed eclipse/pydev today. > I created a pydev project and added python source files with utf-8 > BOM. > Eclipse/Pydev reports lexical error : > Lexical error at line 1, column 1. Encountered: "\ufeff" (65279), > after : "" > > I want the source files to have BOM

Eclipse/PyDev - BOM Lexical Error

2010-10-04 Thread TheOne
Hi. I installed eclipse/pydev today. I created a pydev project and added python source files with utf-8 BOM. Eclipse/Pydev reports lexical error : Lexical error at line 1, column 1. Encountered: "\ufeff" (65279), after : "" I want the source files to have BOM character. How could I shut off thi