pms-infra-cmdrun-0.1.1.0: pms-infra-cmdrun
Safe HaskellNone
LanguageHaskell2010

PMS.Infra.CmdRun.DS.Core

Synopsis

Documentation

cmdRunTask :: TQueue McpResponse -> DefaultCmdRunCommandData -> String -> Int -> IO () Source #

On Windows, .bat scripts call "chcp 65001" at their start to switch the active code page to UTF-8. This ensures that both built-in commands (echo, move, copy, etc.) and external commands (tree.com, xcopy.exe, etc.) emit UTF-8 output. The raw ByteString received from the process is therefore UTF-8 on all platforms, and decodeUtf8With lenientDecode is used uniformly.