farsightsec / axa Goto Github PK
View Code? Open in Web Editor NEWThe Advanced Exchange Access suite
License: Apache License 2.0
The Advanced Exchange Access suite
License: Apache License 2.0
Summary: sratool shows incorrectly represented Unicode/wide characters when built with
external libedit/editline
Details: Some systems need a 3rd party libedit/editline library to build axa. This would
normally come from http://thrysoee.dk/editline/
Note the lined out comment there:
"Unicode
To build libedit with support for unicode (wide-char/UTF-8), add
the --enable-widec option when running configure,
./configure --enable-widec"
That lined out text was replaced with:
"Always builds with unicode (wide-char/UTF-8) support now."
Reproduce Issue: Once axa is built from sources and installed with the
quoted libedit/editline library, start sratool, type a random non-command
and hit return:
sratool
sra> asdasdasdasasdadsd
unrecognized command "asdasdasdasasdadsd"
?
sra> \U+C473\U+C461\U+C464\U+C461\U+C473\U+C464
Note unrendered wide characters.
Jeremy noted in email:
-- quote --
Maybe because the code uses char but when using wide char it should be
wchar_t.
I see some other projects like asterisk and LLDB had same problem with
the editline upgrade, for example:
asterisk/asterisk@72da2ef
http://llvm.org/viewvc/llvm-project?revision=303907&view=revision
I can look at reproducing this and provide a ifdef for this in axa
(maybe in sratool/cmd.c). [...]
(By the way, the change came from NetBSD.)
-- quote --
Thanks,
Joe
Instrumented sratool/cmd.c so I can see arg:
$ echo debug quidt | ./sratool/sratool
No matching help topic could be found for debug quidt
?
That was a typo on purpose which returns unhelpful: "No matching help topic could be found" (which doesn't say 'for ...".
This same "No matching help topic could be found" happens when having too many arguments or wrong argument.
Another example:
$ echo help help "?" | ./sratool/sratool
No matching help topic could be found
When used for "help" it is not as confusing. It is confusing when the error says "help" but you didn't use "help"
Consider having help_cmd() only check for first argument?
I am writing several radtool tests for the command-line tool that don't use a server.
Just opening this ticket for tracking first round of work on this.
help output shows:
tag watch {ip=IP[/n] | dns=[*.]dom | ch=chN | errors}
But using tag or tag watch results in "unrecognized command" and help tag results in "No matching help topic could be found"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.