summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-12-14 02:51:29 +0100
committerAnatol Belski <ab@php.net>2016-12-14 02:51:29 +0100
commite33ec61f9c1baa73bfe1b03b8c48a824ab2a867e (patch)
tree0248732122f9bd9462ea4b3353afe81351d2372e /sapi/phpdbg/phpdbg.c
parentb344832b80c2e298621d596fe6f8c6ce1a745431 (diff)
downloadphp-git-e33ec61f9c1baa73bfe1b03b8c48a824ab2a867e.tar.gz
Care about intput and output encoding, as per default encoding RFC
If PHP CLI is used with programs with no Unicode support, the default PHP console codepage might cause backward incompatible behaviors. This is solved with this patch by separating the handling of I/O codepage. As per https://wiki.php.net/rfc/default_encoding input_encodnig and output_encoding are centralized INI settings, so they're used for the purpose of adjusting the codepage. This gives user the ability to use UTF-8 internally, while letting the system API to convert the output to a compatible codepage. This also might solve the font issues on systems without good true type support. Note, that there no change to the default behavior - if input and output encoding are not set, which is the default case, the default charset applies to both console input and output. The patch is just a compilment to the backward compatibility, not more and not less.
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
0 files changed, 0 insertions, 0 deletions