Is there a way to force the Delphi command line compiler to output English text?


http://stackoverflow.com/questions/32274398/is-there-a-way-to-force-the-delphi-command-line-compiler-to-output-english-text

Comments

  1. I am with David Schwartz here - use a regex to properly parse for the things that are the same in the error messages (the error code)

    But just for completeness sake I think removing the translation resources from the dccxx.exe and dccxx.dll should work.

    ReplyDelete
  2. Just set the corresponding registry entries in 
    HKEY_CURRENT_USER\Software\Embarcadero\Locales or HKEY_CURRENT_USER\Software\Borland\Locales.

    ReplyDelete
  3. Go with regexes. I wrote a small program which "normalizes" Delphi compiler messages. I use it to compare the messages of a previous build to the current build and fail if any warning/error was introduced. It has one regex to separate file, message id and message text and another one that parses the message text in a second step.

    ReplyDelete
  4. Lübbe Onken and does it work regardless of the language?

    ReplyDelete
  5. Will try, when I'm back at work in about two weeks. In theory it should, because the regexes contains no strings like "error" or "warning". I just grep for delimiters, text and numbers in general.
    They would fail right now if a different localization would use e.g. square brackets instead of round for the line numbers.

    ReplyDelete

Post a Comment