From d0837f36dbe476fd9535fee3f2b0e2599031404d Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 16 Jan 2017 18:26:08 -0500 Subject: cmdline-opts/gen.pl: Open input files in CRLF mode On Windows it's possible to have input files with CRLF line endings and a perl that defaults to LF line endings (eg msysgit). Currently that results in generator output of mixed line endings of CR, LF and CRLF. This change fixes that issue in the most succinct way by opening the files in :crlf text mode even when the perl being used does not default to that mode. (On operating systems that don't have a separate text mode it's essentially a no-op.) The output continues to be in the perl's native line ending. --- docs/cmdline-opts/use-ascii.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/cmdline-opts/use-ascii.d') diff --git a/docs/cmdline-opts/use-ascii.d b/docs/cmdline-opts/use-ascii.d index da307dc4d..d59fad922 100644 --- a/docs/cmdline-opts/use-ascii.d +++ b/docs/cmdline-opts/use-ascii.d @@ -3,6 +3,6 @@ Long: use-ascii Help: Use ASCII/text transfer Protocols: FTP LDAP --- -Enable ASCII transfer. For FTP, this can also be enforced by using an URL that +Enable ASCII transfer. For FTP, this can also be enforced by using a URL that ends with ";type=A". This option causes data sent to stdout to be in text mode for win32 systems. -- cgit v1.2.3