gnome-doc-tool crashes when converting .page files

Bug #695069 reported by Tom Wright
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-doc-utils (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: gnome-doc-utils

I have recently been attempting to export the documentation (created using Mallard) of a project on which I have been working to html using gnome-doc-utils but gnome-doc-tools consistently fails to convert the .page files, producing the following error:
gnome-doc-tool: 1: Bad substitution
and others leading from it.

This is due to gnome-doc-tool's urlencode and urldecode function making use of a feature specific to the bash shell (c=${arg:$i:1}) to select a character from a string whereas the script's shell is specified as /bin/sh. I have attached a patch which replaces all instances of this by using the standard Unix cut utility which should completely fix this issue.

Tags: patch
Revision history for this message
Tom Wright (twright-tdw) wrote :
description: updated
description: updated
Tom Wright (twright-tdw)
summary: - gnome-doc-tool unable to handle mallard files
+ gnome-doc-tool crashes when converting .page files
Revision history for this message
Tom Wright (twright-tdw) wrote :
tags: added: patch
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your work, is that still an issue? Ideally the fix should be sent to GNOME for review

Changed in gnome-doc-utils (Ubuntu):
importance: Undecided → Low
Revision history for this message
Tony Byrne (tony-badwolf) wrote : Re: [Bug 695069] Re: gnome-doc-tool crashes when converting .page files

This bug does not appear in Ubuntu Natty 11.04 alpha so is no longer an issue.

On 10/03/2011, Sebastien Bacher <email address hidden> wrote:
> Thanks for your work, is that still an issue? Ideally the fix should be
> sent to GNOME for review
>
> ** Changed in: gnome-doc-utils (Ubuntu)
> Importance: Undecided => Low
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/695069
>
> Title:
> gnome-doc-tool crashes when converting .page files
>
> Status in “gnome-doc-utils” package in Ubuntu:
> New
>
> Bug description:
> Binary package hint: gnome-doc-utils
>
> I have recently been attempting to export the documentation (created using
> Mallard) of a project on which I have been working to html using
> gnome-doc-utils but gnome-doc-tools consistently fails to convert the .page
> files, producing the following error:
> gnome-doc-tool: 1: Bad substitution
> and others leading from it.
>
> This is due to gnome-doc-tool's urlencode and urldecode function
> making use of a feature specific to the bash shell (c=${arg:$i:1}) to
> select a character from a string whereas the script's shell is
> specified as /bin/sh. I have attached a patch which replaces all
> instances of this by using the standard Unix cut utility which should
> completely fix this issue.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/gnome-doc-utils/+bug/695069/+subscribe
>

Revision history for this message
Tom Wright (twright-tdw) wrote :

Yes, they do appear to have fixed this in Natty by setting the script's shell to /bin/bash

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.