mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #554] [MERGED] Fixed -stdin option in Windows #1388
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/554
Author: @Izaron
Created: 12/18/2016
Status: ✅ Merged
Merged: 12/22/2016
Merged by: @cfsmp3
Base:
master← Head:pipes📝 Commits (1)
ccd11d3Fixed -stdin option in Windows📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/lib_ccx/params.c(+3 -1)📄 Description
Issue
Using: "ccextractor -stdin [args] < file" or "type file | ccextractor -stdin [args]"
In Linux all was ok because on this platform 'stdin', 'stdout' and 'stderr' are binary by default.
What the difference between O_TEXT and O_BINARY in Windows: in Windows, the 'stdin' default (O_TEXT) behaviour is to treat byte 0x1a as an end of input and close the input, 0x0a (LF) as a new line and convert it to the two bytes 0x0d, 0x0a (CR+LF). There may be other transformations.
Also I have new issue.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.