[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185014: cdebconf mangles strings with consecutive spaces



On Mon, Mar 17, 2003 at 12:48:59PM +0100, Martin Sjögren wrote:
> sön 2003-03-16 klockan 15.27 skrev Martin Sjögren:
> > Package: cdebconf
> > Version: 0.33
> > Severity: important
> > 
> > When I try to e.g. subst a string with several consecutive spaces (for
> > alignment for example), cdebconf wrecks the spacing in its argument
> > parsing. cdebconf does piece together the strings again, but only with a
> > single space, so the multiple spaces are forgotten.
> 
> The fix is probably simple, move the argument splitting from confmodule
> to the individual commands.

Then the debconf protocol should specify when spaces are significant and
when they are not.

> This will change the API of the command functions though. Since
> commands.h et.al. are included in the -dev package, I guess we need
> to increase SOVERSION too. Bleagh.
> 
> Maybe we should do some thinking and decide exactly which header files
> need to be in the -dev package. debconfclient.h obviously. frontend.h
> and whatever the frontends need? Damn, looking at text.c that's a lot.
> :(
> 
> But I don't see why confmodule.h and commands.h need to be there.

But is there a need for -dev at all? debconfclient.[ch] should go into
debconf, these files define a C interface similar to current Perl, Python
or shell ones.  Other .h files are useless, aren't they?

Denis



Reply to: