The substitution does not work correctly on non-Latin encodings ( VariableSubstitutorInputStream )

Description

The substitution does not work correctly on non-Latin encodings.
Error localized.
The read () method in the VariableSubstitutorInputStream class assigns a Unicode character directly to a byte. (read () returns byte in int.).
Workaround in attache.

Environment

None

Status

Assignee

Unassigned

Reporter

Sergey

Impact

Functional - may break existing environments

Components

Affects versions

Priority

Medium
Configure