#BUGFIX by cg
class: DirectoryView::FileRow
changed: #validateAttributes
care for widestrings in filenames
--- a/DirectoryView.st Sun Dec 30 04:38:28 2018 +0000
+++ b/DirectoryView.st Thu Jan 03 14:19:29 2019 +0100
@@ -1052,8 +1052,10 @@
].
suffix := fileName suffix.
- ((self class respondsTo:(iconKey := (suffix, 'FileIcon') asSymbol))
- or: [self class respondsTo: (iconKey := (fileName baseName, 'Icon') asSymbol)]
+ ((suffix asSingleByteStringIfPossible isSingleByteCollection
+ and:[ (self class respondsTo:(iconKey := (suffix, 'FileIcon') asSymbol))])
+ or: [fileName baseName asSingleByteStringIfPossible isSingleByteCollection
+ and:[self class respondsTo: (iconKey := (fileName baseName, 'Icon') asSymbol)]]
) ifFalse:[
iconKey := #fileIcon.
((suffix = 'o') or:[suffix = 'so']) ifTrue: [
@@ -1069,6 +1071,7 @@
]
"Modified: / 13-09-2017 / 10:00:42 / cg"
+ "Modified: / 01-01-2019 / 15:23:11 / Claus Gittinger"
! !
!DirectoryView class methodsFor:'documentation'!