镜像自地址
https://git.tukaani.org/xz.git
已同步 2025-07-06 12:26:39 +00:00
lzmainfo: Use setmode() on DOS-like systems.
这个提交包含在:
父节点
ef364d3abc
当前提交
acbc4cdecb
@ -20,6 +20,11 @@
|
||||
#include "tuklib_progname.h"
|
||||
#include "tuklib_exit.h"
|
||||
|
||||
#ifdef TUKLIB_DOSLIKE
|
||||
# include <fcntl.h>
|
||||
# include <io.h>
|
||||
#endif
|
||||
|
||||
|
||||
static void lzma_attribute((noreturn))
|
||||
help(void)
|
||||
@ -171,6 +176,10 @@ main(int argc, char **argv)
|
||||
|
||||
parse_args(argc, argv);
|
||||
|
||||
#ifdef TUKLIB_DOSLIKE
|
||||
setmode(STDIN_FILENO, O_BINARY);
|
||||
#endif
|
||||
|
||||
int ret = EXIT_SUCCESS;
|
||||
|
||||
// We print empty lines around the output only when reading from
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户