Fix crash on torrent filenames in non-UTF-8 encoding (#4144)

This commit is contained in:
A Cœur
2022-11-19 00:03:25 +08:00
committed by GitHub
parent 4cc0b77eec
commit 6fcdb526c7
5 changed files with 75 additions and 0 deletions

15
macosx/NSDataAdditions.h Normal file
View File

@@ -0,0 +1,15 @@
// This file Copyright © 2022 Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSData (NSDataAdditions)
- (NSString*)hexString;
@end
NS_ASSUME_NONNULL_END