Now Golded+ outputs errors of reading of a config in stderr instead stdout

This commit is contained in:
Stas Degteff 2011-02-13 13:21:15 +00:00
parent cd61304518
commit 3ebbe6d352
3 changed files with 13 additions and 2 deletions

View File

@ -13,6 +13,12 @@ _____________________________________________________________________________
Ž¡®§­ ç¥­¨ï: "-" - ¨á¯à ¢«¥­¨¥, "+" - ­®¢®¥, "!" - áãé¥á⢥­­®¥ ¨§¬¥­¥­¨¥.
_____________________________________________________________________________
! ’¥¯¥àì Golded+ ¢ë¢®¤¨â ®è¨¡ª¨ ç⥭¨ï ª®­ä¨£  ¢ stderr ¢¬¥áâ® stdout. —⮡ë
¯®á¬®âà¥âì ⮫쪮 ®è¨¡ª¨, ¯®«ì§®¢ â¥«ì î­¨ªá®¯®¤®¡­®© Ž‘ ¬®¦¥â ¨á¯®«ì§®¢ âì
¯¥à¥­ ¯à ¢«¥­¨¥ stderr á।á⢠¬¨ ª®¬ ­¤­®£® ¯à®æ¥áá®à , ­ ¯à¨¬¥à:
(¯®á¬®âà¥âì) `gedlnx 2| less` ¨«¨ (á®åà ­¨âì ¢ ä ©«¥)
`gedlnx 2>gedlnxerr.txt`.
- <20>஢¥àª  ¤«¨­ë ­ §¢ ­¨ï ª®¤¨à®¢ª¨ (¬ ªá¨¬ «ì­® 16 ᨬ¢®«®¢): ¨á¯à ¢«¥­ 
®è¨¡ª  ¯¥à¥¯®«­¥­¨ï ¡ãä¥à .

View File

@ -13,6 +13,11 @@ ______________________________________________________________________
Legend: "-" - bugfix, "+" - new feature, "!" - important modification.
______________________________________________________________________
! Now Golded+ outputs errors of reading of a config in stderr instead
stdout. To look only errors, the user unix-like OS can use a
redirection stderr means of the command processor, for example:
(view) `gedlnx 2| less` or (save to file) `gedlnx 2>gedlnxerr.txt`.
- Check length of charset name (16 characters max): fix buffer
overflow.

View File

@ -202,8 +202,8 @@ typedef uint32_t time32_t; /* 32-bit time_t type */
GUI_Print(str); \
}
#else
#define STD_PRINT(out) std::cout << out;
#define STD_PRINTNL(out) std::cout << out << NL;
#define STD_PRINT(out) std::cerr << out;
#define STD_PRINTNL(out) std::cerr << out << NL;
#endif