#100 Charset error with MinGW + MSys

open
nobody
5
2008-05-04
2008-05-04
progchild
No

I compiled FOX with Mingw and MSys (a Bash environment for MS Windows). With the command:

$ ./configure --enable-shared --prefix=/mingw
$ make

When running the dirlist.exe the filenames containing non ASCII characters wheren't correctly displayed. I found out, that in the other Windows Makefiles, a Compiler Define "UNICODE" is defined, wich is not defined by the configure script.

The configure script must be changed, to correctly set this define.

if test "x$CYGWIN" = "xyes" -o "x$MINGW32" = "xyes" ; then
# use Win32 Unicode
AC_DEFINE(UNICODE)
fi

Discussion

  • progchild

    progchild - 2008-05-04

    configure.in Patch

     
    Attachments
  • progchild

    progchild - 2008-05-04

    Logged In: YES
    user_id=1141613
    Originator: YES

    To apply the patch run the following command in the same directory, where the configure.in script is.

    $ patch -i msys-patch.diff

    Yours sincerely,

    Hendrik Rittich

     
  • progchild

    progchild - 2008-05-04

    Logged In: YES
    user_id=1141613
    Originator: YES

    I forgot to mention, that I used FOX 1.6.33. The Patch is also for this version of FOX.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks