Odd problem with current svn (jan 4th 2009)

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby Alien » Mon Jan 05, 2009 2:25 pm

It's bad and it inserts BOM. Anyway, it might work correctly on mac therefore copying and pasting into a forum will paste a tab insert of that symbol.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby Clueless Newbie » Mon Jan 05, 2009 5:13 pm

divVerent wrote:Clueless Newbie, your nickname really fits you. You ARE totally clueless.

Also, you are a liar


You're usually both polite and helpful, so I'm going to assume you're just having a bad day.

Anyway, this might explain the problem.
2 GHz Mac Pro
Mac OS X 10.6.2
nvidia GeForce 8800 GT
Clueless Newbie
Keyboard killer
 
Posts: 518
Joined: Wed Jan 03, 2007 1:01 pm

Postby C.Brutail » Mon Jan 05, 2009 5:30 pm

At least, the case is closed... :roll:
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby Clueless Newbie » Mon Jan 05, 2009 5:50 pm

C.Brutail wrote:At least, the case is closed... :roll:

Hopefully.

Turns out those extra characters don't show in any of my text editors. Seems I'll have to fix this by manually deleting all the indentations in the shaders. I'll find out later if it works. If it does, I guess I'll have to do the indentations with spaces from now on.

How does Linux and Windows handle tabs, btw? By inserting a string of blanks? Or is there a "tab" character for those platforms?
2 GHz Mac Pro
Mac OS X 10.6.2
nvidia GeForce 8800 GT
Clueless Newbie
Keyboard killer
 
Posts: 518
Joined: Wed Jan 03, 2007 1:01 pm

Postby C.Brutail » Mon Jan 05, 2009 5:57 pm

Yes, iirc there's a conventional, "unix way", and the MS way (doh!). But iirc Notepad just works fine (or better, notepad++)
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby RoKenn » Mon Jan 05, 2009 6:41 pm

Clueless Newbie wrote:How does Linux and Windows handle tabs, btw? By inserting a string of blanks? Or is there a "tab" character for those platforms?


There is a general TAB character, which has the value 9 in ascii.

Code: Select all
      Oct   Dec   Hex   Char                        Oct   Dec   Hex   Char
      011   9     09    HT  '\t' (horizontal tab)   111   73    49    I


The interpretation is different between editors, the original meaning was "move up to the next tab stop", which usually were 8 characters apart. Many editors interpret it as 2,4 or 8 spaces. Doesn't matter as in the worst case your file will look ugly, but still work.

Your character has the hex value 0xca, which isn't defined in ascii and can have different meanings, depending on encoding (iso8859-1, iso8859-2, utf-8...).
[Tue Aug 5 2008] [00:15:01] <Ronan`> RoKenn, you're an evil person :P
Image
RoKenn
Alien
 
Posts: 141
Joined: Wed Apr 25, 2007 10:25 pm

Postby Clueless Newbie » Mon Jan 05, 2009 8:13 pm

C.Brutail wrote:Yes, iirc there's a conventional, "unix way", and the MS way (doh!). But iirc Notepad just works fine (or better, notepad++)

And apparently there's also a "mac way", which isn't supported by any other platform. Live and learn, I guess.

Well, removing all the indentations fixed the problem. Not sure it's re-upping all those old maps for, though.. ;)
2 GHz Mac Pro
Mac OS X 10.6.2
nvidia GeForce 8800 GT
Clueless Newbie
Keyboard killer
 
Posts: 518
Joined: Wed Jan 03, 2007 1:01 pm

Postby Clueless Newbie » Mon Jan 05, 2009 8:16 pm

RoKenn wrote:Your character has the hex value 0xca, which isn't defined in ascii and can have different meanings, depending on encoding (iso8859-1, iso8859-2, utf-8...).

THanks for the info.

The text-editor I use for making scripts — TextWrangler — has a bazillion settings of all kinds. Hopefully, one of them will provide cross-platform tabs.
2 GHz Mac Pro
Mac OS X 10.6.2
nvidia GeForce 8800 GT
Clueless Newbie
Keyboard killer
 
Posts: 518
Joined: Wed Jan 03, 2007 1:01 pm

Postby sYm » Mon Jan 05, 2009 10:44 pm

Clueless Newbie wrote:The text-editor I use for making scripts — TextWrangler —


Well, i use that editor for quite a while now, is great.
But i had similar problems, that there were random chars insert at the begin of some php files. A ware rare problem that i cannot reproduce. Might even be a apple problem with to files that get saved to often.
Easiest way to solve that for me is, copy hole text, make a new file, paste that text into that new file, override the old file.

( char-encodings are realy messy. )
bye sYm PB

#pb.nexuiz #nexuiz.de @ quakenet.org
sYm
Advanced member
 
Posts: 59
Joined: Sat Dec 30, 2006 4:27 pm

Postby divVerent » Tue Jan 06, 2009 6:49 am

Actually, the files do have tabs TOO. The sequence is 0xCA 0x20 0xCA 0x09, which is space, rubbish, tab, rubbish.

Just throw away this TextWrangler thing, and use a real editor, like the vim that comes with OS X. To fix your existing files, do this:

vim
:e ++enc=us-ascii foo.shader

You'll get a "conversion error" message and question marks in the text file. Delete them. Done.

After that:

:w

And I really assumed that it was you inserting these characters intentionally and expecting them to work.

It really was a bad idea to support OS X from the start. Just problems everywhere. Can't even use standard whitespace characters....
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Previous

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron