Skip to content

Epsilon doesn't handle arguments because of strcmp #1695

@RedGl0w

Description

@RedGl0w

Describe the bug

My computer uses an implementation of strcmp() which will return -1 if the string is lower, 0 if it is egal, or 1 greater (and it corresponds to the c norm).
image
The issue of that is epsilon main wants a function which will return the difference of chars (like it is implemented here).
The execution arguments doesn't work at all for me, because of that requirement.

Screenshots

By adding before this line that line :

std::cout << argv[i] << " " << appNames[j] << " " << cmp << std::endl;

here is what is outputed :
image

Expected behavior

I would expect args to work.

Environment

  • Epsilon master
  • The platform(s) on which the problem happens: arch linux with gcc 10.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions