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.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
+ ## [ 0.85.1] - 2024-10-26
9
+
10
+ ### Fixed
11
+
12
+ - Fixed encoding issue when saving files such as screenshots on Windows
13
+
8
14
## [ 0.85.0] - 2024-10-25
9
15
10
16
### Changed
@@ -2483,6 +2489,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
2483
2489
- New handler system for messages that doesn't require inheritance
2484
2490
- Improved traceback handling
2485
2491
2492
+ [ 0.85.1 ] : https://github.com/Textualize/textual/compare/v0.85.0...v0.85.1
2486
2493
[ 0.85.0 ] : https://github.com/Textualize/textual/compare/v0.84.0...v0.85.0
2487
2494
[ 0.84.0 ] : https://github.com/Textualize/textual/compare/v0.83.0...v0.84.0
2488
2495
[ 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 1
1
[tool .poetry ]
2
2
name = " textual"
3
- version = " 0.85.0 "
3
+ version = " 0.85.1 "
4
4
homepage = " https://github.com/Textualize/textual"
5
5
repository = " https://github.com/Textualize/textual"
6
6
documentation = " https://textual.textualize.io/"
Original file line number Diff line number Diff line change @@ -240,7 +240,9 @@ def deliver_binary(
240
240
241
241
def save_file_thread (binary : BinaryIO | TextIO , mode : str ) -> None :
242
242
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 :
244
246
read = binary .read
245
247
write = destination_file .write
246
248
chunk_size = 1024 * 64
You can’t perform that action at this time.
0 commit comments