mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
ICU-13356 gennorm2 crashes if the input file contains blank lines.
X-SVN-Rev: 40414
This commit is contained in:
parent
03f431d30d
commit
fc78f45dd9
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,9 @@ void parseFile(std::ifstream &f, Normalizer2DataBuilder &builder) {
|
|||
std::string lineString;
|
||||
uint32_t startCP, endCP;
|
||||
while(std::getline(f, lineString)) {
|
||||
if (lineString.empty()) {
|
||||
continue; // skip empty lines.
|
||||
}
|
||||
#if (U_CPLUSPLUS_VERSION >= 11)
|
||||
char *line = &lineString.front();
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue