Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect report of ambiguous unicode characters #23149

Closed
sergeych opened this issue Feb 25, 2023 · 15 comments · Fixed by #28454
Closed

Incorrect report of ambiguous unicode characters #23149

sergeych opened this issue Feb 25, 2023 · 15 comments · Fixed by #28454

Comments

@sergeych
Copy link

Description

The wiki page viewer (and editor) show a warring on ambiguous unicode chararcters I tried for most non-latin1 characters. Please remove it at all. It is hardly useful even would it be functional (and it is not). It is not possible to make a good guess on which unicode is OK for a project with many localisations. The locale of the developer (reporter, wiki writer) computer/browser often will be different from the locale that is used to report a problem (in a localised text for example) or describe a test case described in the wiki page.

Gitea Version

1.18.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Screenshot 2023-02-25 at 15 06 10

Git Version

1.18.5

Operating System

Linux ** 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64

How are you running Gitea?

downloaded your binaries

Database

PostgreSQL

@sergeych
Copy link
Author

looks like it is fixed to not yet included in the try.gitea version (1.20...). Hope it is fixed ;)

@lunny
Copy link
Member

lunny commented Mar 5, 2023

I think this is a known issue.

@wxiaoguang
Copy link
Contributor

Known issues have been fixed. This could be a new issue.

If you could provide a reproducible page on try.gitea.io, maybe it would help some maintainers to take a look at it.

@wxiaoguang
Copy link
Contributor

@sergeych
Copy link
Author

sergeych commented Mar 6, 2023

Known issues have been fixed. This could be a new issue.

If you could provide a reproducible page on try.gitea.io, maybe it would help some maintainers to take a look at it.

I was not able to reproduce it on try.gitea - but the version there is a beta, while I'm using the latest stable. Hope it is fixed in beta (but strange it is not yet fixed in fresh new stable), but it is very likely its just a new "feature" not yet ported to the try.gitea. I sincerely hate the idea of trying to analyze unicode in the text field... Let browser do it. Practically no reason to spend effort to just make the life of gitea user just more complicated.

@wxiaoguang
Copy link
Contributor

I was not able to reproduce it on try.gitea

Could you share the text contents of your screenshot? Wrap them here by ```

while I'm using the latest stable

Do you mean 1.18.x? If there is a chance, could you try 1.19.0-rc1? Most changes in try.gita.io are also in 1.19, but not in 1.18.

@ARNik
Copy link

ARNik commented Mar 22, 2023

Have the same issue with 1.19.0

@sergeych
Copy link
Author

So any plan to fix it? Just remove the clumsy and useless check.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Apr 1, 2023

Could you share the text contents of your screenshot? Wrap them here by ```


How about introducing a global config option to disable the check for all repositories?

@lunny
Copy link
Member

lunny commented Apr 1, 2023

I like to add a global option to disable it but keep it open default as before.

@sergeych
Copy link
Author

sergeych commented Apr 1, 2023 via email

@wxiaoguang
Copy link
Contributor

For security:

ps: Could you share the text contents of your screenshot? Wrap them here by ``` ? At least, it's easier for developer to reproduce your issue and do improvements in the future.

@sergeych
Copy link
Author

sergeych commented Apr 1, 2023 via email

@silverwind
Copy link
Member

I assume wiki needs the same treatment as #22016, cc @zeripath.

@silverwind silverwind added the good first issue Likely to be an easy fix label Apr 30, 2023
@silverwind
Copy link
Member

silverwind commented Apr 30, 2023

This should be an easy fix. Hide the warning on wiki pages via template condition, similar to what #22016 did for file render view.

@wxiaoguang wxiaoguang removed the good first issue Likely to be an easy fix label Jul 24, 2023
lunny pushed a commit that referenced this issue Dec 17, 2023
wxiaoguang added a commit to wxiaoguang/gitea that referenced this issue Dec 17, 2023
wolfogre pushed a commit that referenced this issue Dec 18, 2023
…#28499)

Backport #28454 (the only conflict is caused by some comments)

* Close #24483
* Close #28123
* Close #23682
* Close #23149
fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this issue Jan 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
silverwind pushed a commit to silverwind/gitea that referenced this issue Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants