|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
UTF8 with BOMI have a UTF8 coded file with BOM.
And MinGW doesn't like it [err] -o .out\objs_debd\src\BFBackupTree.o D:\Garage\projekte\blackfisk\trunk\src\BFAboutDlg.cpp:1: error: stray '\239' in program D:\Garage\projekte\blackfisk\trunk\src\BFAboutDlg.cpp:1: error: stray '\187' in program D:\Garage\projekte\blackfisk\trunk\src\BFAboutDlg.cpp:1: error: stray '\191' in program [/err] How can I fix it? I am not able to code it with UTF8 without BOM because the MSVC compiler doesn't like it. ;) -- publictimestamp.org/ptb/PTB-6253 tiger 2009-05-26 15:00:06 7C774037D5A5556CC291F04D022FB7834B5B9B88115B9044 ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: UTF8 with BOMtry the notepad++ editor
> I am not able to code it with UTF8 without BOM because the MSVC compiler > doesn't like it. ;) ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: UTF8 with BOMnotmmao schrieb:
> try the notepad++ editor I am using it. But you didn't understand my problem. I need a file encoded a way that both compilters, MinGW and MSVC, can handle it. But the problem is MSVC only accept UTF8+BOM and MinGW only UTF8-BOM. Understand? Is there a way to teach MinGW UTF8+BOM? -- publictimestamp.org/ptb/PTB-6253 tiger 2009-05-26 15:00:06 7C774037D5A5556CC291F04D022FB7834B5B9B88115B9044 ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: UTF8 with BOM2009/6/6 Christian Buhtz <exsudat@...>:
> > Is there a way to teach MinGW UTF8+BOM? If gcc accepts - (a dash character) as input file name, then you can put in your makefile something like this: cat prog.c | program-that-strips-bytes 3 | gcc -c -o prog.o - where program-that-strips-bytes is probably dd, or whatever tool is capable of stripping the first n bytes from a file. Of course its command line must be adapted. Hope this helps. -- CS ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: UTF8 with BOMColdShine a écrit :
> 2009/6/6 Christian Buhtz <exsudat@...>: >> Is there a way to teach MinGW UTF8+BOM? Apparently not. gcc doesn't like BOMs currently. > If gcc accepts - (a dash character) as input file name, then you can > put in your makefile something like this: > > cat prog.c | program-that-strips-bytes 3 | gcc -c -o prog.o - I think that there are situations where changing the way gcc is invoked can be tricky, especially when using automake. What about avoiding UTF-8 if possible? Just use some other BOM-free encoding in MSVC and tweak gcc's -finput-charset option. -- Olivier ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: UTF8 with BOMOn 2009-06-06 09:25Z, Christian Buhtz wrote:
[...] > Is there a way to teach MinGW UTF8+BOM? The preprocessor is 'cpp', so this search: http://www.google.com/#q=gnu+cpp+bom leads to messages like these: http://gcc.gnu.org/ml/gcc-help/2009-02/msg00127.html http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33415 which might help. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
| Free embeddable forum powered by Nabble | Forum Help |