# HG changeset patch # User Claus Gittinger # Date 1546521569 -3600 # Node ID b97f51aaa9ac9ba348799c2b8db84741956f35df # Parent 62a4caa1ac5e3fc6e3f9e22d8ea94041ffa0cd24 #BUGFIX by cg class: DirectoryView::FileRow changed: #validateAttributes care for widestrings in filenames diff -r 62a4caa1ac5e -r b97f51aaa9ac DirectoryView.st --- 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'!