Skip to content

Commit

Permalink
Fix issue #175:move supportsUnicode to the platform class
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Apr 20, 2024
1 parent fe4c708 commit 2603986
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
private
encoding
supportsUnicode
"dynamically try to figure out whether the current dialect supports Unicode"

^ [
String
with: (Character value: 16r1F1F3)
with: (Character value: 16r1F1F1).
with: (Character codePoint: 16r1F1F3)
with: (Character codePoint: 16r1F1F1).
true
] on: Error
do: [ :error | false ]
6 changes: 1 addition & 5 deletions repository/Grease-Core.package/monticello.meta/categories.st
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
SystemOrganization addCategory: #'Grease-Core'!
SystemOrganization addCategory: #'Grease-Core-Collections'!
SystemOrganization addCategory: #'Grease-Core-Exceptions'!
SystemOrganization addCategory: #'Grease-Core-Text'!
SystemOrganization addCategory: #'Grease-Core-Utilities'!
self packageOrganizer ensurePackage: #'Grease-Core' withTags: #(#Collections #Exceptions #Text #Utilities)!
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ tests-file library
testCompileAsciiString
| selector expected source |

self supportsUnicode ifFalse: [
GRPlatform current supportsUnicode ifFalse: [
^ self ].

selector := #stringMethod.
Expand Down

0 comments on commit 2603986

Please sign in to comment.