Menu ▾ ▴

#447 & in user name

closed
nobody
None
5
2012-09-26
2004-11-18
aditsu
No

Dev-C++ fails to compile anything if the current user
name contains an ampersand.
See for example
https://sourceforge.net/forum/forum.php?thread_id=1170103&forum_id=48211
Apparently, quite a few people have this kind of user name.

Discussion

  • Alex Yoon Jong Joh

    Logged In: YES
    user_id=301445

    This problem comes from handling "&" keyword improperly in
    Makefile because the way to handle filename in linux and
    windowz is different.

    In my experience, the best way to eliminate the problem of
    special character in Windowz is to use quotation mark on the
    filename.

    In the 743 in utils.pas file
    { GenMakePath: convert a filename to a format that can be
    used by make }
    function GenMakePath(FileName: String): String;
    begin
    Result:=StringReplace(Filename, '\', '/', [rfReplaceAll]);
    // if Pos(' ', Filename)>0 then
    Result := '"'+Result+'"';
    end;

    After commenting the line for "if Pos(...", all source filenames
    and object filenames were created with quotation mark and I
    can compile successfully.

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    it was reported before, there was one more problem related
    to this

     

Log in to post a comment.