Update width of datetime formatting to accommodate change in Japan datetime era#9503
Conversation
…at with new era starting 5/1/19
|
@SteveL-MSFT, your last commit had 1 failures in retry of URL failed with error:
at <ScriptBlock>, /home/vsts/work/1/s/test/common/markdown/markdown-link.tests.ps1: line 113
113: throw "retry of URL failed with error: $($_.Message)"
|
|
@PoshChan please retry static |
|
@SteveL-MSFT, successfully started retry of |
|
This pull request probably corrects the display of "元年"(the first year), but I think it seems to have no effect. Language Setting
Result of
|
|
To solve this problem fundamentally, it is necessary to handle the east asian full width character's width correctly. This full width charactor problem is very difficult, I think it is better to revert this commit and simply ignore the display collapse. |
PR Summary
With the new Emperor, Japan is entering a new era which affects the format of their datetime. It needs one more character to the width. Since I don't anticipate this change happening again (the last time I believe was hundreds of years ago), I'm simply updating the width from 25 to 26 rather than defining a const.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.