X Tutup
Skip to content

Pharo7+: contents of empty binary file are nil rather than an empty instance of ByteArray #107

@jbrichau

Description

@jbrichau

Given an empty file somefile, the following returns nil instead of an empty instance of ByteArray.

GRPlatform current contentsOfFile: 'somefile' binary: true

This is not consistent with text files (which return an empty instance of String), nor with previous Pharo versions.

The change is caused because of #106

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

      X Tutup