| 12729 | |
| 12730 | |
| 12731 | void Script::SetErrorStdOut(LPTSTR aParam) |
| 12732 | { |
| 12733 | mErrorStdOutCP = Line::ConvertFileEncoding(aParam); |
| 12734 | // Seems best not to print errors to stderr if the encoding was invalid. Current behaviour |
| 12735 | // for an encoding of -1 would be to print only the ASCII characters and drop the rest, but |
| 12736 | // if our caller is expecting UTF-16, it won't be readable. |
| 12737 | mErrorStdOut = mErrorStdOutCP != -1; |
| 12738 | // If invalid, no error is shown here because this function might be called early, before |
| 12739 | // Line::sSourceFile[0] is given its value. Instead, errors appearing as dialogs should |
| 12740 | // be a sufficient clue that the /ErrorStdOut= value was invalid. |
| 12741 | } |
| 12742 | |
| 12743 | void Script::PrintErrorStdOut(LPCTSTR aErrorText, int aLength, LPCTSTR aFile) |
| 12744 | { |