File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
77
8+ ## [ 0.85.1] - 2024-10-26
9+
10+ ### Fixed
11+
12+ - Fixed encoding issue when saving files such as screenshots on Windows
13+
814## [ 0.85.0] - 2024-10-25
915
1016### Changed
@@ -2483,6 +2489,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
24832489- New handler system for messages that doesn't require inheritance
24842490- Improved traceback handling
24852491
2492+ [ 0.85.1 ] : https://github.com/Textualize/textual/compare/v0.85.0...v0.85.1
24862493[ 0.85.0 ] : https://github.com/Textualize/textual/compare/v0.84.0...v0.85.0
24872494[ 0.84.0 ] : https://github.com/Textualize/textual/compare/v0.83.0...v0.84.0
24882495[ 0.83.0 ] : https://github.com/Textualize/textual/compare/v0.82.0...v0.83.0
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " textual"
3- version = " 0.85.0 "
3+ version = " 0.85.1 "
44homepage = " https://github.com/Textualize/textual"
55repository = " https://github.com/Textualize/textual"
66documentation = " https://textual.textualize.io/"
Original file line number Diff line number Diff line change @@ -240,7 +240,9 @@ def deliver_binary(
240240
241241 def save_file_thread (binary : BinaryIO | TextIO , mode : str ) -> None :
242242 try :
243- with open (save_path , mode ) as destination_file :
243+ with open (
244+ save_path , mode , encoding = encoding or "utf-8"
245+ ) as destination_file :
244246 read = binary .read
245247 write = destination_file .write
246248 chunk_size = 1024 * 64
You can’t perform that action at this time.
0 commit comments