Pages: 1
  Print  
Author Topic: Symbols???  (Read 1425 times)
Offline (Unknown gender) UltraStar
Posted on: December 11, 2014, 05:13:58 AM
Member
Joined: Dec 2014
Posts: 10

View Profile Email
Does anyone know how I can insert a Copyright Symbol in the Global Game Settings under Platforms / Windows Version Information
for example. I know how to insert the symbols using the ALT+169 keys and it looks ok but when I compile the game
then look at the executable just compiled on Windows it has a funny looking A in front of the © then the © symbol.

I've even tried putting \u00AE and it still doesn't work.

Is there anyway I can do this?

Thank you in advance.
Logged
Offline (Male) Goombert
Reply #1 Posted on: December 11, 2014, 09:24:32 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
The copyright symbol is ALT+0169, I can confirm this bug, but it may not be our fault.



We add the copyright information by passing it to the Windows resource compiler in MinGW, which is how Visual Studio adds this information to exe's, and it does appear the value was written there correctly.
Code: ( (Unknown Language)) [Select]
VALUE "LegalCopyright",      "Copyright © Robert B. Colton"
I've filed a ticket.
https://github.com/enigma-dev/enigma-dev/issues/886

This suggests using \251 for the copyright symbol and it does work for me.
http://pisoft.ru/verstak/insider/cw_ver1.htm



This is not how GM 8.1 behaves.
« Last Edit: December 11, 2014, 09:37:53 AM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) UltraStar
Reply #2 Posted on: December 13, 2014, 07:24:37 AM
Member
Joined: Dec 2014
Posts: 10

View Profile Email
 :) Ok. Thank you. I'll give it a try.
Logged
Offline (Male) Josh @ Dreamland
Reply #3 Posted on: December 13, 2014, 09:12:19 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
"Written correctly" here isn't well-defined. You probably wrote a completely correct CP-1252 copyright symbol. But the rest of the world has moved on; apparently, even pieces of Windows Exploder. Could you paste a hex dump of the file you go that "Legal Copyright" line from? I'm not sure if you'll have the CP-1252 or UTF-8 version (I sincerely hope you have the former), but whichever it is, we'll need to change it or specify encoding options to the resource compiler.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #4 Posted on: December 13, 2014, 01:33:37 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
I did some more research Josh, it appears some hacking has to be done to make windres compile unicode.

I tried including the winduni header instead of windows.h along with ansidecl.h from binutils in the resource file but without including windows.h nothing is written and even including that it still ignores the unicode. Also winduni.h and ansidecl.h are not included in MinGW so we'd also have to redistribute them even if it did work. There is also ansidecl.c and winduni.c so maybe I am just supposed to recompile windres.exe with the unicode support?
http://www.opensource.apple.com/source/gdb/gdb-1515/src/binutils/winduni.h

I don't quite understand how you get unicode windres.exe working with MinGW and none of the internets make any sense, I also tried passing -D UNICODE -D _UNICODE as defines in gcc.ey
https://www.google.com/?gws_rd=ssl#q=windres.exe+unicode

Actually, I think this may shed some light, windres doesn't handle unicode at all, it only handles ASCII, but you can hack it to handle UTF-8 if you want, or we could just escape the symbols ourselves.
http://comments.gmane.org/gmane.comp.gnu.mingw.user/592

Edit: Scratch all that --codepage=65001 works
https://github.com/enigma-dev/enigma-dev/pull/893

This effectively resolves the issue and the patch will be included in the next portable zip release.
« Last Edit: December 15, 2014, 09:07:57 AM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) UltraStar
Reply #5 Posted on: December 15, 2014, 03:01:10 AM
Member
Joined: Dec 2014
Posts: 10

View Profile Email
Thank you. I'm downloading the merged git now :)

Sorry for the delayed response, I've been out of town.
Logged
Pages: 1
  Print