microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.79k stars 6.58k forks source link

PowerToys Run: Calculator Module Went Wrong While Processing English Bracket in Simplified Chinese settings #28343

Closed hs150521 closed 2 weeks ago

hs150521 commented 1 year ago

Microsoft PowerToys version

0.73.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

For my personal using habit. When I'm using the Calculator. I will usually setting my input language in English. Because in Chinese mode, the character / will change into 、 There's a bug while using the calculator with brackets: If the first character is bracket in English ( , It won't print the answer For example:

Strating with a bracket in English:

(1+1):nothing (1+1):nothing

Strating with a bracket in Simplified Chinese:

(1+1):2 (1+1):2

Strating with = (The Direct activation command):

=(1+1):2 =(1+1):2 =(1+1):2 =(1+1):2

Strating with other numbers:

1+(1+1):3 1+(1+1):3 1+(1+1):3 1+(1+1):3

Clearly, I think the problem is that the Calculator can't recognize the formula starting with a bracket in English as a calculating

✔️ Expected Behavior

Print the right answer: 2

❌ Actual Behavior

Nothing was printed out

Other Software

Country format for Windows is Hong Kong, China (Simplified Chinese)

Settings for Calculator plugin: Direct activation command: = Include in global result: Yes Use English (United States) number format for input: OFF Use English (United States) number format for output: OFF

jaimecbernardo commented 1 year ago

I didn't quite understand, what's the difference of "Starting with a bracket in English:" and "Strating with a bracket in Simplified Chinese:" ? Those look like the same characters to me. GitHub also seems to be showing them as the same characters. /needinfo

hs150521 commented 1 year ago

The bracket in English is one-character long, The bracket in Simplified Chinese is two-character long. It looks like a bracket in English and a space, but it's coded in another way c6b7b48c44aed3b45415a6b3cc1f756

cinnamon-msft commented 3 weeks ago

Are you still experiencing this issue? /needinfo

hs150521 commented 2 weeks ago

Nope, I think it was fixed.