Re: Ascii-problems when compiling stand-alone in swi-prolog...

From: Cesar Rabak (crabak_at_acm.org)
Date: 02/14/04

  • Next message: Robert Oschler: "Re: Newbie, The secret with Prolog: How to to transform old "traditionally programming" thinking into Prolog style?"
    Date: Sat, 14 Feb 2004 00:06:29 -0200
    
    

    Olof escreveu:
    > Hi there!
    >
    > I'm having a really annoying trouble when creating stand-alone
    > executables in Swi...My professor gave me a tip of this group so on
    > his recommendation I plead for your expertice on this...

    Humm... will try ;-?

    >
    > When I compile a stand-alone executable in Swi, some of the
    > characters (å,ä and ö...Yes, I'm from Sweden, you guessed it)
    > transforms into other characters. I've figured out that the coding
    > system for swedish ascii is iso-latin-1-with-esc (at least that's the
    > case in sicstus), but unlike in sicstus, I have found no way to
    > change coding system in swi. Is it possible to change this in the
    > compilation-command? Right now I'm just writing:

    Let me ask you: is your OS MS Windows of some sort? And the 'transformed
    characters' are the ones you see in the SWI IDE correctly 'wrong' in the
    command line?

    >
    > plcon.exe --goal=start_goal --stand_alone=true -o output -c input.pl
    >
    > in order to get an executable. Should there be anything else in
    > there? Please help me with this problem, any help is greatly
    > appreciated (going nuts here...)...
    >
    If my questions are both yes, the problem lies in the character set for
    the command prompt be different than the one used in the graphical
    enviroment:

    You have two choices:

    1) Avoid altogether accented characters; or
    2) Use the characters (in your program source) which will give in
    programm output the 'right' characters.

    HTH

    --
    Cesar
    

  • Next message: Robert Oschler: "Re: Newbie, The secret with Prolog: How to to transform old "traditionally programming" thinking into Prolog style?"

    Relevant Pages

    • Re: RS232 Problems
      ... Does the device expect power on DSR or RTS ... > characters, it goes and does things and reports back to us with ... > So I can't figure out if the problem lies with my RS232 device that ... > I'm trying to communicate with (works with a PC but not with a webpad) ...
      (microsoft.public.dotnet.framework.compactframework)
    • RS232 Problems
      ... characters, it goes and does things and reports back to us with ... This works as expected with both C++ and C# sample apps. ... So I can't figure out if the problem lies with my RS232 device that ... I'm trying to communicate with (works with a PC but not with a webpad) ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: Ascii-problems when compiling stand-alone in swi-prolog...
      ... >>2) Use the characters (in your program source) which will give in ... >>programm output the 'right' characters. ... > Windows, ... If the compiled programm of yours is supposed to be distributed ...
      (comp.lang.prolog)
    • Re: -Crawl- Enchant armour bug?
      ... None of my characters have ever found one of these, ... know of the game, that's the only thing that comes to mind. ... I suspect the problem lies in lines 2642 ... Rob ...
      (rec.games.roguelike.misc)
    • Re: Networking problem
      ... the problem lies with the b = null; Is there anyway to delete all teh ... characters from a String buffer? ...
      (comp.lang.java.programmer)