Results 1 to 1 of 1

Thread: isspace() assert on Debug build

  1. #1

    Default isspace assert on Debug build

    Hi!
    First of all, thanks ClanLib's staff for this great lib!

    I was writing some test code with ClanLib, when I got this little problem:
    Running the debug build of application gives me an assert on isctype.c. Not on Release build though.
    After some studying, I noticed that isspace was failing after checking some chars from command_line, here:
    Code:
    clanapp.cpp
    
    111:        if (!isspace(*command_line)) new_arg = false;
    Tracing a bit further, I've found what was causing isspace to fail: the character "" (0xE7) on the exe path. VC was extending it (char > int) to 0xFFFFFFE7 when passing it to isspace, causing it to fail. MSDN says something about undefined behaviour of isspace() on Debug CRT Runtime libs under certain circumstances. Weird, . Running it from a place with no "strange" characters in path solves the problem.

    Did anyone else noticed that?

    I'm using VC v7.1 with CL 0.8.0 (Stable) @ Windows XP SP2

    Best regards,

    Fausto Junior
    Last edited by Fausto Junior; 12-21-2006 at 12:10 AM. Reason: typo :O

Similar Threads

  1. Can't build configure.dsw
    By Angew in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 12-06-2006, 09:43 AM
  2. Weird build problem
    By void_kill in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 11-10-2006, 06:18 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •