K.Takata

Results 291 comments of K.Takata

How about this patch? ```diff diff --git a/compile-iconv-gettext-windows.sh b/compile-iconv-gettext-windows.sh index 2fcb4b2..af557a0 100755 --- a/compile-iconv-gettext-windows.sh +++ b/compile-iconv-gettext-windows.sh @@ -517,9 +517,9 @@ bldgtxtCompileGettext () { echo '### Making gettext' pushd "$BLDGTXT_CONFIGURED/gettext-$BLDGTXT_V_GETTEXT" >/dev/null...

I could totally remove the dependency on libgcc and libstdc++ from all files with this dirty hack: https://github.com/k-takata/gettext-iconv-windows/commit/a7355c23f2d96a6705133fb7c08d39da446540df libgettextpo-0.dll's dependency on libgcc was removed by adding `CCLD='$(CC) -XCClinker -static-libgcc'` option...

When I tried your latest source, `0001-Avoid-dependency-on-libwinpthread.patch` (added by 0abe54a04a225e0161166640b30c6a0fce09300b) failed to be applied. `gettext-tools/config.h` doesn't exist before running the `configure` script.

Ah, I got it. But I rerun the build script, I got the following message: ``` - patching (0001-Avoid-dependency-on-libwinpthread.patch) 1 out of 1 hunk FAILED -- saving rejects to file...

https://github.com/ggreer/the_silver_searcher/blob/4f7aca7b01c157866f5b708341bbccad0d7a6256/src/search.c#L317-L334 It seems that the code doesn't support a larger file than 4 GB, but I'm not sure about nearly 4 GB.

> Do you think the `ag` output above is because of the file size? Yes, but it's not sure which API failed: `CreateFileMapping` or `MapViewOfFile`.

Related file: https://github.com/oneclick/rubyinstaller2/blob/1dfa3f5e407345f11936da21c578e426f76d55a8/recipes/sandbox/60-side-by-side-assembly.rake

Cygwin itself now supports ConPTY (it is disabled in MSYS2 by default, though). Supporting it in winpty might not be so important.

MSYS2's automatic path conversion can be controlled by an environment variable `MSYS2_ARG_CONV_EXCL`. See: https://sourceforge.net/p/msys2/wiki/Porting/#filesystem-namespaces (I'm not sure this is the case.)

Try this: ``` $ winpty python -c "from ctypes import *; windll.kernel32.SetConsoleMode(windll.kernel32.GetStdHandle(-11), 7); print('\033[32mGreen\033[m')" ``` For detail, see the `ENABLE_VIRTUAL_TERMINAL_PROCESSING` flag of [SetConsoleMode()](https://docs.microsoft.com/en-us/windows/console/setconsolemode).