bug-gperf
[Top][All Lists]
Advanced

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

Re: [bug-gperf] gperf lacks support for binary keys.


From: Bruno Haible
Subject: Re: [bug-gperf] gperf lacks support for binary keys.
Date: Sun, 19 Jan 2014 23:15:06 +0100 (CET)

Hi,

> although there seemingly is support for binary keys,
> through the command line option --compare-lengths
> which states "Compare key lengths before trying a
> string comparison. This is necessary if the
> keywords contain NUL bytes", there is no provision
> for really binary input, and without good reason.

Look at gperf-3.0.4/tests/lang-ucs2.gperf; this is an example
for use of binary keys, with embedded NUL bytes and varying length.
In the Makefile, this sample is used with the option -l / --compare-lengths.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]