Some characters shows different in different locales.
Submitted by Zealot
Link to original bug (#445620)
Description
If I set locale=en_US.UTF-8 and set to GBK encoding under terminal menu, All table characters is equal to one English character. If I set locale=zh_CN.GBK and also set to GBK encoding under terminal menu, All table characters is equal to two English characters.
I have checked vte 0.12. It does not have this problem. I got the same result under GBK encoding no matter which locale I set.
here are some characters get involved. table = 0x2500,0x2501,0x2502,0x2503,0x2504,0x2505,0x2506,0x2507 table = 0x2508,0x2509,0x250A,0x250B,0x250C,0x250D,0x250E,0x250F table = 0x2510,0x2511,0x2512,0x2513,0x2514,0x2515,0x2516,0x2517 table = 0x2518,0x2519,0x251A,0x251B,0x251C,0x251D,0x251E,0x251F table = 0x2520,0x2521,0x2522,0x2523,0x2524,0x2525,0x2526,0x2527 table = 0x2528,0x2529,0x252A,0x252B,0x252C,0x252D,0x252E,0x252F table = 0x2530,0x2531,0x2532,0x2533,0x2534,0x2535,0x2536,0x2537 table = 0x2538,0x2539,0x253A,0x253B,0x253C,0x253D,0x253E,0x253F table = 0x2540,0x2541,0x2542,0x2543,0x2544,0x2545,0x2546,0x2547 table = 0x2548,0x2549,0x254A,0x254B,0x2550,0x2551,0x2552,0x2553 table = 0x2554,0x2555,0x2556,0x2557,0x2558,0x2559,0x255A,0x255B table = 0x255C,0x255D,0x255E,0x255F,0x2560,0x2561,0x2562,0x2563 table = 0x2564,0x2565,0x2566,0x2567,0x2568,0x2569,0x256A,0x256B table = 0x256C,0x256D,0x256E,0x256F,0x2570,0x2571,0x2572,0x2573
These characters is one character width in utf8, but it should be two character width in gbk.
Version: 0.16.x
Resolution: RESOLVED FIXED