Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: warpino on May 25, 2015, 02:05:59 pm

Title: double dash in compiler options becomes em-dash. Mac OSX Yosemite
Post by: warpino on May 25, 2015, 02:05:59 pm
Hi all,

I managed to compile C::B 13.12 SVN on OSX 10.10 Yosemite and the FortranPlugin as well. Everything seems ok, but I find it very annoying that double dashes '--' are transformed into em-dashes in the compiler options windows, causing errors during build.
This does not happen in my linux installation.
Any way I can get rid of it?

Regards,

w.
Title: Re: double dash in compiler options becomes em-dash. Mac OSX Yosemite
Post by: oBFusCATed on May 25, 2015, 09:25:52 pm
Can you try to build some wxwidget sample that has a wxTextCtrl in it and try to reproduce the problem in it?
For sure this is not caused by some option on the wxTextCtrl we have enabled (at least not intentionally).
Title: [SOLVED] double dash in compiler options becomes em-dash. Mac OSX Yosemite
Post by: warpino on June 02, 2015, 01:06:44 pm
There is an option in OSX
System Preferences -> Keyboard
and unchecking "use smart quotes and dashes" or something like that did the trick.

Strangely the prebuilt version of C::B 13.12 was not affected by that option

Thank you for your reply!
Title: Re: double dash in compiler options becomes em-dash. Mac OSX Yosemite
Post by: oBFusCATed on June 02, 2015, 09:10:29 pm
The prebuild version uses wxcarbon, but if you've built your own agains wx3.x, you're most probably using wxcocoa.
Thus one of the versions is using the carbon apis, the other is using the cocoa apis and probably this feature is not supported in the carbon apis.