From b0b3f45b80931e73eadaf7e73f1981283b8e49fc Mon Sep 17 00:00:00 2001 From: Alexis-Lapierre Date: Mon, 1 May 2023 00:40:06 +0200 Subject: Conserve BOM and properly support UTF16 (#6497) --- helix-term/src/commands.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helix-term/src') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 88393ff4..882a8a1d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -5111,7 +5111,8 @@ async fn shell_impl_async( let output = if let Some(mut stdin) = process.stdin.take() { let input_task = tokio::spawn(async move { if let Some(input) = input { - helix_view::document::to_writer(&mut stdin, encoding::UTF_8, &input).await?; + helix_view::document::to_writer(&mut stdin, (encoding::UTF_8, false), &input) + .await?; } Ok::<_, anyhow::Error>(()) }); -- cgit v1.2.3-70-g09d2