Mercurial > hg > nginx
diff src/core/ngx_log.c @ 2769:9d986c4e796f
introduce ngx_write_console() to support OEM code pages
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 28 Apr 2009 15:05:27 +0000 |
parents | 6d358aeaa989 |
children | 7a44b1932741 |
line wrap: on
line diff
--- a/src/core/ngx_log.c Tue Apr 28 06:20:12 2009 +0000 +++ b/src/core/ngx_log.c Tue Apr 28 15:05:27 2009 +0000 @@ -152,7 +152,7 @@ (void) ngx_sprintf(msg, "[%V]: ", &err_levels[level]); - (void) ngx_write_fd(ngx_stderr, msg, p - msg); + (void) ngx_write_console(ngx_stderr, msg, p - msg); } @@ -224,7 +224,7 @@ ngx_linefeed(p); - (void) ngx_write_fd(ngx_stderr, errstr, p - errstr); + (void) ngx_write_console(ngx_stderr, errstr, p - errstr); }