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

omz_urlencode:45: pcre_exec() error [-10] #12388

Open
alps2006 opened this issue Apr 30, 2024 · 1 comment
Open

omz_urlencode:45: pcre_exec() error [-10] #12388

alps2006 opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working

Comments

@alps2006
Copy link
Contributor

Describe the bug

omz_urlencode cause omz_urlencode:45: pcre_exec() error [-10] when setting setopt rematchpcre and entering a multi-byte directory.

The file lib/termsupport.zsh can call the function omz_urlencode of lib/functions.zsh.

Steps to reproduce

~/scripts ❯ setopt rematchpcre ; omz_urlencode "你好"
omz_urlencode:45: pcre_exec() error [-10]
omz_urlencode:45: pcre_exec() error [-10]
omz_urlencode:45: pcre_exec() error [-10]
omz_urlencode:45: pcre_exec() error [-10]
omz_urlencode:45: pcre_exec() error [-10]
omz_urlencode:45: pcre_exec() error [-10]

Expected behavior

none

Screenshots and recordings

No response

OS / Linux distribution

macOS 10.15

Zsh version

5.9

Oh My Zsh version

master (803e1a7)

Terminal emulator

kitty

If using WSL on Windows, which version of WSL

None

Additional context

No response

@alps2006 alps2006 added the Bug Something isn't working label Apr 30, 2024
@carlosala
Copy link
Member

I can't reproduce it on my system, but I think we should setopt localoptions norematchpcre. We're heavily using regexes there and it'd be great to have that more controlled. @mcornella what do you think about it?

PS: this issue reminds me to #12202, I'd say there's some issue for sure with rematchpcre and macOS...

@carlosala carlosala self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants