Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath"
version = "2.10.0"
version = "2.10.1"
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
8 changes: 6 additions & 2 deletions src/uipath/_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@

# Windows console uses codepages (e.g. cp1252) that can't encode Unicode
# characters used by Rich spinners (Braille) and emoji output.
# When piped (not a TTY), keep the system encoding so the parent process
# can decode our output, but use errors="replace" to avoid write-side crashes.
if sys.platform == "win32":
for _stream in (sys.stdout, sys.stderr):
if hasattr(_stream, "reconfigure"):
_stream.reconfigure(encoding="utf-8")

if _stream.isatty():
_stream.reconfigure(encoding="utf-8")
else:
_stream.reconfigure(errors="replace")
# DO NOT ADD HEAVY IMPORTS HERE
#
# Every import at the top of this file runs on EVERY command.
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.