gaogushenling / sed-windows

Instructions for building sed.exe as a native windows application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sed-windows

Instructions for building Gnu Sed as a native windows application

All patches under the same license as sources of Gnu Sed: GPLv3 or later

Author of the patches: Michael M. Builov (mbuilov@gmail.com)

Fixed bugs:

  • wrong directory of input file in in-place editing mode ('-i' switch) (sed: cannot rename ./sed8JEw8l: Improper link)
  • sources were fixed for correct processing of text files with Windows line endings (if Sed is built under CYGWIN)
  • fixed support of UTF-8 locale (e.g. "Russian_Russia.UTF-8", available starting with Windows 7)
  • fixed interaction with standard Windows console in UTF-8 code page (set by chcp 65001)

Added features:

  • native Sed is capable for resolving wildcards in file arguments
  • native Sed takes locale settings from environment variables LC_ALL, LC_CTYPE or LANG
  • new switch '-C' or '--ignore-locale' - forces Sed to use the standard "C" locale; this switch is most usable in binary mode, to avoid possible interpretation of input data as multi-byte encoded strings (depending on the system locale)
  • new switch '--locale' - to explicitly specify locale to use (and ignore environment variables LC_ALL, LC_CTYPE and LANG)

Pre-built executables:

Instructions how to create the build patch

Prepared build patches

For x64/Windows7/VS19:

For x86/WindowsXP/VS9

About

Instructions for building sed.exe as a native windows application