- # IncList = gINCLUDE_PATTERN.findall(Line)\r
- IncList = []\r
- if len(IncList) == 1:\r
- for Dir in [File.Dir] + self.IncludePathList:\r
- IncFile = PathClass(str(IncList[0]), Dir)\r
- self.IncFileList.append(IncFile)\r
- if os.path.isfile(IncFile.Path):\r
- Lines.extend(self.PreProcess(IncFile, True))\r
- break\r
- else:\r
- EdkLogger.Error("Unicode File Parser", \r
- ToolError.FILE_NOT_FOUND, \r
- Message="Cannot find include file", \r
- ExtraData=str(IncList[0]))\r
- continue\r
- \r
+ #\r
+ # Check if single line has correct '"'\r
+ #\r
+ if Line.startswith(u'#string') and Line.find(u'#language') > -1 and Line.find('"') > Line.find(u'#language'):\r
+ if not Line.endswith('"'):\r
+ EdkLogger.Error("Unicode File Parser", ToolError.FORMAT_INVALID,\r
+ ExtraData='''The line %s misses '"' at the end of it in file %s'''\r
+ % (LineCount, File.Path))\r
+\r