[PR #7358] [MERGED] Fix unicode output on windows with redirect to file #59092

Closed
opened 2026-04-29 13:58:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7358
Author: @dhiltgen
Created: 10/25/2024
Status: Merged
Merged: 10/25/2024
Merged by: @dhiltgen

Base: mainHead: win_unicode_pipe


📝 Commits (1)

  • 634517d Fix unicode output on windows with redirect to file

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 cmd/cmd.go (+1 -1)

📄 Description

If we're not writing out to a terminal, avoid setting the console mode on windows, which corrupts the output file.

Fixes #3826


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/7358 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 10/25/2024 **Status:** ✅ Merged **Merged:** 10/25/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `win_unicode_pipe` --- ### 📝 Commits (1) - [`634517d`](https://github.com/ollama/ollama/commit/634517d27cab9d73e39c662b53408275a0c90ecc) Fix unicode output on windows with redirect to file ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+1 -1) </details> ### 📄 Description If we're not writing out to a terminal, avoid setting the console mode on windows, which corrupts the output file. Fixes #3826 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 13:58:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#59092