Author Topic: SVN-HEAD binaries download  (Read 38763 times)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: SVN-HEAD binaries download
« Reply #75 on: January 02, 2006, 02:55:10 pm »
I do not know why this particular file does not display, but it certainly has nothing to do with Code::Blocks not having support to open non-UTF files.

If Code::Blocks could not open non-UTF files, then I would be unable to open 99% of my own sources...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: SVN-HEAD binaries download
« Reply #76 on: January 02, 2006, 03:18:36 pm »
You can prove that this problem is not due to missing non-UTF support by doing as I just did:

Open the file Editor.cxx in SciTE, and save 5 separate copies of the same file, each using a different encoding method. Then drag all these files onto Code::Blocks.

You will see that it opens none of them, regardless of whether they are 8-bit encoded, UTF-8 encoded with or without cookie, or UCS-2 encoded in either big or little endian (the latter is not surprising, UCS-2 is indeed not supported).
It does not matter how this particular file is encoded, it does not work either way.

Obviously there is a (yet unknown) issue with certain files, but it is certainly not "Code::Blocks has no support for opening non-UTF files".
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: SVN-HEAD binaries download
« Reply #77 on: January 02, 2006, 03:22:35 pm »
thomas, you have to realize that ASCII files are also UTF8. Many files can be saved in multiple charsets and have exactly the same bytes. However, if one of them is saved in a format that conflicts with UTF8, C::B will not open it for the time being. I'm working on a fix, but it's difficult. But I was not wrong in my statement, either.

C::B simply does not support opening files that are not UTF8. Unfortunately it's not a 5 minute fix. I'll make a thread later today with my suggestion for how C::B could truly handle the different charsets. :)
« Last Edit: January 02, 2006, 03:27:21 pm by 280Z28 »
78 280Z, "a few bolt-ons" - [email protected]
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: SVN-HEAD binaries download
« Reply #78 on: January 02, 2006, 03:56:24 pm »
all files in "src\sdk\as\source" are not opened in CB

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: SVN-HEAD binaries download
« Reply #79 on: January 02, 2006, 04:08:55 pm »
thomas, you have to realize that ASCII files are also UTF8.
Incorrect/inaccurate information. This is only true (coincidally) for character codes below 127.

Here is a file which quite obviously has characters outside that range and which is quite obviously not UTF-encoded:

Code: [Select]
$ cat müll.cpp
// ▒1 sch▒ner M▒ll mit vielen Umlauten, so da▒ auch Sam sehen kann,
$ hexdump müll.cpp
0000000 2f2f a720 2031 6373 f668 656e 2072 fc4d
0000010 6c6c 6d20 7469 7620 6569 656c 206e 6d55
0000020 616c 7475 6e65 202c 6f73 6420 df61 6120
0000030 6375 2068 6153 206d 6573 6568 206e 616b
0000040 6e6e 0d2c 2f0a 202f 2020 7720 7361 6620
0000050 72fc 6520 6e69 fc20 6c62 7265 202c 62fc
0000060 7265 6c66 73fc 6973 6567 2072 6e55 6973
0000070 6e6e 6420 7361 6920 7473 2e2e 002e
000007d

And here is the file opened and correctly displayed in Code::Blocks



EDIT: Strictly speaking, you are right in some way, since ASCII is strictly only 7 bits... but that does not matter for the example.
« Last Edit: January 02, 2006, 04:10:48 pm by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: SVN-HEAD binaries download
« Reply #80 on: January 02, 2006, 04:09:50 pm »
:o I meant ASCII files with "normal" chars :sillyme: My bad
78 280Z, "a few bolt-ons" - [email protected]
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5239
Re: SVN-HEAD binaries download
« Reply #81 on: January 02, 2006, 04:28:45 pm »
I have been toying around with the file "as_variablescope.h" (in the sdk as).
In that file in the comments is the name of the author : Jönsson.
The problem character is that : ö  (o with umlaut)
Remove that character, and you can see the contents of the file

Lieven

pS : for scintilaa editor.cxx:
slop | strict | jumps | even | Caret can go to the margin                 | When reaching limitİ(caret going out of


-------> the character after the limit word is the cause
« Last Edit: January 02, 2006, 04:35:03 pm by killerbot »

Offline takeshi miya

  • Lives here!
  • ****
  • Posts: 1487
Re: SVN-HEAD binaries download
« Reply #82 on: January 02, 2006, 04:29:56 pm »
Correctly speaking ASCII=7 bits (plain old english), ANSI=8 bits (any language, depending on the codepage).

Offline therion

  • Multiple posting newcomer
  • *
  • Posts: 41
    • SVN Head builds
Re: SVN-HEAD binaries download
« Reply #83 on: January 02, 2006, 05:16:31 pm »
Humm....

Thanks killer and thomas, done that with my files and now its working :-)

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: SVN-HEAD binaries download
« Reply #84 on: January 02, 2006, 05:48:48 pm »
Just take a look at the bug report. A few days ago I already added a comment that describes the problem:
http://sourceforge.net/tracker/index.php?func=detail&aid=1384513&group_id=126998&atid=707416
 :wink:
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5239
Re: SVN-HEAD binaries download
« Reply #85 on: January 02, 2006, 06:53:17 pm »
superman Yiannis has just solved this :
changing one line of code in globals.cpp
revision 1648

 :P :P :P :P :P :P :P :P

Offline therion

  • Multiple posting newcomer
  • *
  • Posts: 41
    • SVN Head builds
Re: SVN-HEAD binaries download
« Reply #86 on: January 02, 2006, 07:34:51 pm »
yeaahhhh!!!! and works great :-)
ill upload in a second