After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696854 - xmllint --path option and spaces
xmllint --path option and spaces
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: xmllint
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
: 382527 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-29 14:11 UTC by Antoine
Modified: 2021-07-05 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for xmllint.c file (476 bytes, patch)
2013-04-03 15:35 UTC, Antoine
none Details | Review

Description Antoine 2013-03-29 14:11:54 UTC
When invoking xmllint with --path option, it is not possible to add a directory which contains spaces. Space is considered as separator.

In parsePath() function in xmllint.c, is it possible to remove test against ' ' char?

Thank you.
Comment 1 Antoine 2013-04-03 15:35:53 UTC
Created attachment 240491 [details] [review]
patch for xmllint.c file
Comment 2 Daniel Veillard 2013-07-11 09:43:49 UTC
Hum, the problem is that it would break existing use (in scripts etc ...)
where space is used to separate, that's a common practice.
A better solution would be to allow the use of escaping with \ to
allow the separator characters to be passed.

  --path "foo\ bar"

though on Windows that would break paths like "c:\ foo" but space at
the beginning of a directory is uncommon, and \ could be escaped itself
as in "c:\\ foo"

  not completely trivial,

Daniel
Comment 3 Nick Wellnhofer 2019-12-14 09:55:50 UTC
*** Bug 382527 has been marked as a duplicate of this bug. ***
Comment 4 GNOME Infrastructure Team 2021-07-05 13:25:58 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/

Thank you for your understanding and your help.