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

warning: regexp escape sequence `\"' is not a known regexp operator #285

Closed
lacygoill opened this issue Feb 25, 2019 · 7 comments
Closed
Labels

Comments

@lacygoill
Copy link

  • $ gawk -V:

     GNU Awk 4.2.62, API: 2.0 (GNU MPFR 3.1.4, GNU MP 6.1.0)
    
  • $ trans -V:

     gawk: /dev/fd/63:176: warning: regexp escape sequence `\"' is not a known regexp operator
     Translate Shell       0.9.6.4-git:84eaf66
    
     platform              Linux
     gawk (GNU Awk)        4.2.62
     fribidi (GNU FriBidi) [NOT INSTALLED]
     audio player          mpv
     terminal pager        less
     terminal type         tmux-256color
     user locale           en_US (English)
     home language         en
     source language       auto
     target language       en
     translation engine    google
     proxy                 [NONE]
     user-agent            Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Epiphany/3.18.2
     theme                 default
     init file             [NONE]
    
     Report bugs to:       https://github.com/soimort/translate-shell/issues
    

When I run any $ trans command, such as:

$ trans -V

Or:

$ trans 'Saluton, Mondo!'

The output begins with the following warning from gawk:

gawk: /dev/fd/63:176: warning: regexp escape sequence `\"' is not a known regexp operator

It seems to be due to this commit in the gawk codebase.

@soimort
Copy link
Owner

soimort commented Feb 25, 2019

Thanks for the report.

0.9.6.4 was a quite outdated version of translate-shell; a lot of code might have changed since then. Can you please confirm if the warning persists with the newest version 0.9.6.9?

@lacygoill
Copy link
Author

Yes, I think the issue is still present in 0.9.6.9. I've just re-installed the latest version I could find from github, and the output of trans -V still begins with a warning:

$ trans -V
gawk: /dev/fd/63:177: warning: regexp escape sequence `\"' is not a known regexp operator
Translate Shell       0.9.6.9-git:b13772d

platform              Linux
gawk (GNU Awk)        4.2.62
fribidi (GNU FriBidi) 0.19.7
audio player          mpv --no-config
terminal pager        less
terminal type         tmux-256color
user locale           en_US.UTF-8 (English)
home language         en
source language       auto
target language       en
translation engine    google
proxy                 [NONE]
user-agent            Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Epiphany/3.18.2
theme                 default
init file             [NONE]

Report bugs to:       https://github.com/soimort/translate-shell/issues

@soimort
Copy link
Owner

soimort commented Feb 25, 2019

Thanks. Now I can reproduce it under the latest git build of gawk, too.

@soimort soimort added the gawk label Feb 25, 2019
@zouhair
Copy link

zouhair commented Apr 16, 2019

Now that gawk version 5.0.0 is out the same problem happens again, as gawk change the regex routines now using GNULIB's ones.

https://lists.gnu.org/archive/html/info-gnu/2019-04/msg00002.html

@forthrin
Copy link

Happens on macOS/Homebrew too with version 0.9.6.9 and gawk 5.0.0.

@rsmnarts
Copy link

same problem

@zouhair
Copy link

zouhair commented Apr 20, 2019

Last version fixed it.

https://github.com/soimort/translate-shell/releases/tag/v0.9.6.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants