]> granicus.if.org Git - php/commit
chance CLI codepage, only when SAPI is initialized
authorAnatol Belski <ab@php.net>
Fri, 16 Dec 2016 15:49:18 +0000 (16:49 +0100)
committerAnatol Belski <ab@php.net>
Fri, 16 Dec 2016 15:49:18 +0000 (16:49 +0100)
commitb91d7f186acc7c107fa330bc8697c2cc98360e45
tree4e815cf439a28e118343d738c430aa0076287ed3
parent8ba7878f1b88f760d1cf483321e2ac1b27a93c58
chance CLI codepage, only when SAPI is initialized

This finally solves issues with DBSC console codepages, and in
general improves the console codepage switching. When
module_initialized, all the possible encoding INI settings with
regard to possible modifications are set, and that's the
right moment to switch the console codepage in regard to I/O.
CJK glyphs might take more than 1 cell, so then  visual issues
can occur, when switching console codepage back and forth. Users
are free to use ini_set(), but any visual issues are then up to
the user responsibility.
win32/codepage.c