diff --git a/docs/KNOWNISSUES.md b/docs/KNOWNISSUES.md index 7356f041f..f06866c96 100644 --- a/docs/KNOWNISSUES.md +++ b/docs/KNOWNISSUES.md @@ -1,18 +1,5 @@ # Known Issues -## SecureString - -The `SecureString` class is *not* the well-known C# `SecureString`, as the -library is not available in .NET Core. However, PowerShell continues to use the -type for two main reasons: FullCLR compatibility, and as a specially-treated -type (that is, behavior is dependent on the type being `SecureString`). Instead, -the `SecureString` is Mono's completely not secure whatsoever, but open-source -and "compatible" stub that acts just like a plaintext `StringBuilder`. **It has -no encryption.** - -Additionally `ReadLineSafe` is not implemented, meaning `Get-Credential` fails -with `PlatformNotSupportedException`. - ## Files excluded from the build #### Microsoft.PowerShell.Commands.Management diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs index 2c8b6c090..8b4e7bb99 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs @@ -299,7 +299,7 @@ namespace Microsoft.PowerShell StringBuilder result = new StringBuilder(); #if LINUX bool treatControlCAsInput = Console.TreatControlCAsInput; -#endif +#else ConsoleHandle handle = ConsoleControl.GetConioDeviceHandle(); ConsoleControl.ConsoleModes originalMode = ConsoleControl.GetMode(handle); bool isModeChanged = true; // assume ConsoleMode is changed so that if ReadLineSetMode