From 2609f6f49763fd75e5c529788795a07f6559b954 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 2 Feb 2018 14:12:04 +0100 Subject: Bug 792935 - error: Could not open file .../doc/html/functions_ .html for writing Labels are used internally in pages but also for filenames and not all file systems can cope with all characters, so only ASCII printable characters are left untouched. --- src/index.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.cpp b/src/index.cpp index bfa4954..24c0290 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -1638,10 +1638,15 @@ static void writeAnnotatedClassList(OutputList &ol) ol.endIndexList(); } +inline bool isId1(int c) +{ + return (c<127 && c>31); // printable ASCII character +} + static QCString letterToLabel(uint startLetter) { char s[11]; // max 0x12345678 + '\0' - if (isId(startLetter)) // printable ASCII character + if (isId1(startLetter)) // printable ASCII character { s[0]=(char)startLetter; s[1]=0; -- cgit v0.12