Skip to content

[My bug report]Typographical confusion with dual-byte characters #11232

Closed

Description

@he852100

font:

宋体(simsun.ttf)

price  vdat sdm u  h  bws ieps  pd message loaion
-----  ---- --- -  -  --- ----  -- ------- ------
9.62 K    294 4 15 2500    1 175  GIGAT  CHIAO,

哇  dbda llm c噢 hdd   测试 123 pid 消息 位置
-  ---- --- -- ---   -- --- --- -- --
62 KM   294  4  15 2500   1 175 千  哇
PS > $f;$e
price   : $39.62
vdat    : K
sdm     : 294
u       : 4
h       : 15
bws     : 2500
ieps    : 1
pd      : 175
message :  GIGAT
loaion  : CHIAO,
plad    : 968
哇    : 62
dbda : KM
llm  : 294
c噢   : 4
hdd  : 15
测试   : 2500
123  : 1
pid  : 175
消息   : 千
位置   : 哇
plad : 96
PS > Get-Host|select Name,Version,@{N="名称";E={"q"}},@{N="196";E={"间"}}|fl                                                                                          
Name    : ConsoleHost                                             
Version : 6.2.3                                                   
名称      : q                                                     
196     : 间
PSVersion                      6.2.3/7                              
PSEdition                      Core                               
GitCommitId                    6.2.3/7                              
OS                             Linux 4.9.112-perf #1 SMP 
PREEMPT… Platform                       Unix

Test string

{
  "哇": "62",
  "dbda": "KM",
  "llm": "294",
  "c噢": 4,
  "hdd": 15,
  "测试": 2500,
  "123": 1,
  "pid": 175,
  "消息": "千",
  "位置": "哇",
  "plad": 96
}
{
  "price": "39",
  "vdat": "K",
  "sdm": "294",
  "u": 4,
  "h": 15,
  "bws": 2500,
  "ieps": 1,
  "pd": 175,
  "mesage": " IGAT",
  "loaion": "CHIAO,",
  "plad": 968
}

Activity

  1. added
    Issue-Question
    on Dec 2, 2019
  2. changed the title [-][My bug report]Typographical issues with double bytes[/-] [+][My bug report]Typographical confusion with dual-byte characters[/+] on Dec 2, 2019
  3. iSazonov commented on Dec 2, 2019

    @iSazonov
    Collaborator

    he852100 Can you check without PSReadline and with latest PSREadline version?

  4. he852100 commented on Dec 2, 2019

    @he852100
    Author

    Screenshot_20191202-151911~2

    PSVersion                      7.0.0-daily.20191128
    PSEdition                      Core
    GitCommitId                    7.0.0-daily.20191128
    OS                             Linux 4.9.112-perf #1 SMP PREEMPT Mon Jan 7 10:46:47 KST 2019
    Platform                       Unix
    
  5. iSazonov commented on Dec 2, 2019

    @iSazonov
    Collaborator

    /cc Steve Lee (@SteveL-MSFT) Formatting System issue?

  6. he852100 commented on Dec 3, 2019

    @he852100
    Author

    Line break issues.
    Version:7,6,5.1,5
    system:server2019,centos
    Screenshot_20191203-153054~2

  7. SteveL-MSFT commented on Dec 3, 2019

    @SteveL-MSFT
    Member

    Looks like the current code doesn't use existing code to calculate double byte chars. Might be a simple fix...

  8. kwkam commented on Dec 7, 2019

    @kwkam
    Contributor

    #5739 had been ignored and #11262 was merged within a week, not surprised though.
    Anyway, thanks for fixing this, finally.

  9. iSazonov commented on Dec 7, 2019

    @iSazonov
    Collaborator

    kwkam You are ahead of time!
    (I have no experience in the area - sorry that was no help from me.)

  10. SteveL-MSFT commented on Dec 10, 2019

    @SteveL-MSFT
    Member

    kwkam sorry that your PR was ignored, but it was prefixed as WIP: so usually team members don't spend time reviewing those until it is not a work-in-progress. I wasn't aware you had submitted that PR and didn't mean to take it over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-Question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions