Discard implementation of %L and %U format specifiers, now never used.

This commit is contained in:
Eric S. Raymond 2017-07-03 18:40:06 -04:00
parent df36b62c74
commit 1c4fcaf43e
2 changed files with 2 additions and 25 deletions

View file

@ -108,18 +108,9 @@
# Message strings may include certain special character sequences to
# denote that the program must provide parameters to insert into a
# message when the message is printed. These sequences are:
# %d = an integer
# %s = an ASCII string
# %S = The letter 'S' or nothing (if a given value is exactly 1)
# %W = A word (up to 10 characters)
# %L = A word mapped to lower-case letters
# %U = A word mapped to upper-case letters
# %C = A word mapped to lower-case, first letter capitalised
# %T = Several words of text, ending with a word of -1
# %1 = A 1-digit number
# %2 = A 2-digit number
# ...
# %9 = A 9-digit number
# %B = Variable number of blanks
# %! = The entire message should be suppressed
# %V = substitute program version string
motions: !!omap

14
misc.c
View file

@ -190,20 +190,6 @@ void vspeak(const char* msg, bool blank, va_list ap)
size -= len;
}
// All-lowercase specifier.
if (msg[i] == 'L' ||
msg[i] == 'C') {
packed_to_token(arg, renderp); /* unpack directly to destination */
int len = strlen(renderp);
for (int j = 0; j < len; ++j) {
renderp[j] = tolower(renderp[j]);
}
if (msg[i] == 'C') // First char uppercase, rest lowercase.
renderp[0] = toupper(renderp[0]);
renderp += len;
size -= len;
}
previous_arg = arg;
}
}