Giter Site home page Giter Site logo

axa's People

Contributors

alesage avatar chuqvr avatar cmikk avatar mcrawforddt avatar reedjc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axa's Issues

3rd party libedit/editline --> incorrectly displays unicode chars

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

help_cmd should run for first argument only and too many arguments or wrong argument should say that

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?

miscellaneous radtool non-server tests

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.

unrecognized command "tag"

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.