Skip to content

GRPlatformTest>>supportsUnicode should be moved to the GRPlatform #175

Closed

Description

@eMaringolo

The current implementation in GRPlatformTest attempts to guess whether the Smalltalk dialect supports Unicode, but it raises an exception in platforms such as VAST where it does support it but not by using Characters with codepoints greater than 255 (e.g. VAST uses a Grapheme class for that).

Te guesswork could remain, but it should be moved to the platform specific class, so we don't have to patch that code in the original codebase and we can determine whether we support it in our own packages.

supportsUnicode
	"dynamically try to figure out whether the current dialect supports Unicode"
	^ [ 
		String
			with: (Character value: 16r1F1F3)
			with: (Character value: 16r1F1F1).
		true
	 ] on: Error do: [ :error | false ]

Activity

  1. added a commit that references this issue on Apr 20, 2024
  2. jbrichau commented on Apr 20, 2024

    @jbrichau
    Member

    Addressed in #176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions