From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.151.62.67; helo=nwk-aaemail-lapp02.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from nwk-aaemail-lapp02.apple.com (nwk-aaemail-lapp02.apple.com [17.151.62.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 073F1208F7AA8 for ; Thu, 24 Jan 2019 09:46:03 -0800 (PST) Received: from pps.filterd (nwk-aaemail-lapp02.apple.com [127.0.0.1]) by nwk-aaemail-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id x0OHgSOv008737; Thu, 24 Jan 2019 09:46:01 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=mime-version : content-type : sender : subject : from : in-reply-to : date : cc : message-id : references : to; s=20180706; bh=le9EAc4lHnHpgEr4rKDUQ2KzaxpCXY+w2LKkEzX0foQ=; b=d1dFO4fbJ7pbbcGtzPGuqEfcvJR5kAAYVfqXx2kfUkIsQZbBgj9HVx4ws85Cjgf1YPNO a8uAEl2zlT9UE1736F83COg01SODSdHV4eicqBS//r4lnr7DeEdK72fjZXWZNjeJ1MYR ZjrqkTyehXsrvsMI3H9A2WquM3WO4DtaFm+Up5dr8SgHiFJ/bxAXCTiT8tjEKezsWFKe C83u2VgNY4U7VbcVyC85OEpPYtHWxBmOgQRhCeo1fX92WGBTyiIZ5oXwNRF71/N3VaL/ viKQLI1I2CkZa3VDSJZk8PLbV5WJD3PZ5Z9CXnZdhObGh0hy7xdReSwyqvILpzVxC48d EQ== Received: from mr2-mtap-s03.rno.apple.com (mr2-mtap-s03.rno.apple.com [17.179.226.135]) by nwk-aaemail-lapp02.apple.com with ESMTP id 2q41bsw2xt-27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 24 Jan 2019 09:46:01 -0800 MIME-version: 1.0 Received: from ma1-mmpp-sz10.apple.com (ma1-mmpp-sz10.apple.com [17.171.128.150]) by mr2-mtap-s03.rno.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPS id <0PLU00HIXK0MJX40@mr2-mtap-s03.rno.apple.com>; Thu, 24 Jan 2019 09:45:59 -0800 (PST) Received: from process_viserion-daemon.ma1-mmpp-sz10.apple.com by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) id <0PLU00L00K0KS700@ma1-mmpp-sz10.apple.com>; Thu, 24 Jan 2019 09:45:58 -0800 (PST) X-Va-A: X-Va-T-CD: 81bc50dcaed96df73b856fb2bb30cfe8 X-Va-E-CD: d21ee35a63cffcdc81552a2d9d8245dd X-Va-R-CD: 9c188bba2fd1933a8e68bffa8bb31ff0 X-Va-CD: 0 X-Va-ID: 84b9ff57-c52b-47cd-8558-d120091f5088 X-V-A: X-V-T-CD: 81bc50dcaed96df73b856fb2bb30cfe8 X-V-E-CD: d21ee35a63cffcdc81552a2d9d8245dd X-V-R-CD: 9c188bba2fd1933a8e68bffa8bb31ff0 X-V-CD: 0 X-V-ID: 4fda98ae-9fde-4d8b-a755-64fe73b1d604 Received: from process_milters-daemon.ma1-mmpp-sz10.apple.com by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) id <0PLU00I00JXMOC00@ma1-mmpp-sz10.apple.com>; Thu, 24 Jan 2019 09:45:57 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-24_11:,, signatures=0 Received: from [17.234.212.140] (unknown [17.234.212.140]) by ma1-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.2.3.20181024 64bit (built Oct 24 2018)) with ESMTPSA id <0PLU00KG0JZSY000@ma1-mmpp-sz10.apple.com>; Thu, 24 Jan 2019 09:45:31 -0800 (PST) Sender: afish@apple.com From: Andrew Fish X-Priority: 3 In-reply-to: <5860630.8aaa.1687eafa2d7.Coremail.sssky307@163.com> Date: Thu, 24 Jan 2019 09:45:00 -0800 Cc: edk2-devel@lists.01.org Message-id: <44D582EC-9551-4C45-8D94-893F1BC08F43@apple.com> References: <2835a5a4.4bae.1687ddd35af.Coremail.sssky307@163.com> <5860630.8aaa.1687eafa2d7.Coremail.sssky307@163.com> To: krishnaLee X-Mailer: Apple Mail (2.3445.6.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-24_11:, , signatures=0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [question] A piece of log.txt showed in uefi shell is not the same as showed in notepad++ X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 X-List-Received-Date: Thu, 24 Jan 2019 17:46:04 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Krishna, =46rom an EFI point of view BackSpace 0x08, LF 0x0A, and CR 0xD are = defined for a ConOut device.=20 =46rom Ascii Control Codes: 0x0C - Form Feed 0x0E - Shift Out The Shift Out is used with graphics characters.=20 How did you dump the log? If EFI sends data to a serial terminal then it = would use terminal emulation and the output stream would look different.=20= Thanks, Andrew Fish > On Jan 23, 2019, at 11:07 PM, krishnaLee wrote: >=20 > Andrew Fish, > thank you,in this case,you are right. > but I think there may be other case that the user data just contain = some nosense-data > such as { UINT16 MyData[]=3D{0x000c,0x000d,0x000d,0x000e} } to the = editor,=20 > the uefi editor may also meet this question,the editor may do not need = output this, > but the editor should make sure other visible chars can output = normal... >=20 > I don't know if it is a bug or not. >=20 > Thank you very much. > krishna. >=20 >=20 >=20 >=20 > =E5=9C=A8 2019-01-24 12:13:50=EF=BC=8C"Andrew Fish" = =E5=86=99=E9=81=93=EF=BC=9A >> On Jan 23, 2019, at 7:17 PM, krishnaLee > wrote: >>=20 >> Hi, >> I dumped a small log.txt from my work,but the log.txt showed in uefi = shell,is not the same as it showed in notepad++. >> I had upload the log here: >> https://github.com/krishna116/test/blob/master/log.zip = >>=20 >>=20 >> it seems the log showed in uefi shell had missed some strings...I = don't know why,please help, >>=20 >=20 > Krishna, >=20 > Your log.txt looks like a normal UTF-16 Unicode file. The leading FF = FE is the Byte order mark for UTF-16 Little Endian [1]. The file looks = like it has CR line endings [2] so maybe that is confusing your editor? = There seems to be a CR LF at the end, so the mixture of line ending may = even be more likely confusing the editor. The byte order mark should let = your editor know it is 16-bit Unicode and the correct endian. Hope this = helps... >=20 > $ hexdump -C /Users/andrewfish/Downloads/log/log.txt=20 > 00000000 ff fe 20 00 20 00 20 00 4d 00 58 00 32 00 35 00 |.. . . = .M.X.2.5.| > 00000010 4c 00 31 00 32 00 38 00 37 00 35 00 46 00 20 00 = |L.1.2.8.7.5.F. .| > 00000020 20 00 20 00 20 00 49 00 44 00 3a 00 30 00 78 00 | . . = .I.D.:.0.x.| > 00000030 43 00 32 00 32 00 30 00 31 00 38 00 20 00 20 00 = |C.2.2.0.1.8. . .| > 00000040 20 00 20 00 53 00 69 00 7a 00 65 00 3a 00 20 00 | . = .S.i.z.e.:. .| > 00000050 31 00 36 00 33 00 38 00 34 00 4b 00 42 00 20 00 = |1.6.3.8.4.K.B. .| > 00000060 28 00 31 00 33 00 31 00 30 00 37 00 32 00 4b 00 = |(.1.3.1.0.7.2.K.| > 00000070 62 00 29 00 20 00 20 00 20 00 20 00 20 00 20 00 |b.). . . = . . . .| > 00000080 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 000000c0 20 00 20 00 20 00 20 00 0d 00 0d 00 20 00 20 00 | . . . = ..... . .| > 000000d0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 00000190 20 00 20 00 0d 00 0d 00 20 00 20 00 20 00 20 00 | . ..... = . . . .| > 000001a0 4d 00 58 00 32 00 35 00 4c 00 36 00 34 00 37 00 = |M.X.2.5.L.6.4.7.| > 000001b0 33 00 45 00 20 00 20 00 20 00 20 00 49 00 44 00 |3.E. . . = . .I.D.| > 000001c0 3a 00 30 00 78 00 43 00 32 00 32 00 30 00 31 00 = |:.0.x.C.2.2.0.1.| > 000001d0 37 00 20 00 20 00 20 00 20 00 53 00 69 00 7a 00 |7. . . . = .S.i.z.| > 000001e0 65 00 3a 00 20 00 38 00 31 00 39 00 32 00 4b 00 |e.:. = .8.1.9.2.K.| > 000001f0 42 00 20 00 28 00 36 00 35 00 35 00 33 00 36 00 |B. = .(.6.5.5.3.6.| > 00000200 4b 00 62 00 29 00 20 00 20 00 20 00 20 00 20 00 |K.b.). . = . . . .| > 00000210 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 00000260 0d 00 0d 00 20 00 20 00 20 00 20 00 20 00 20 00 |.... . . = . . . .| > 00000270 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 00000320 20 00 20 00 20 00 20 00 20 00 20 00 0d 00 0d 00 | . . . . = . .....| > 00000330 53 00 50 00 49 00 20 00 42 00 41 00 52 00 3a 00 |S.P.I. = .B.A.R.:.| > 00000340 20 00 46 00 45 00 30 00 31 00 30 00 30 00 30 00 | = .F.E.0.1.0.0.0.| > 00000350 30 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 |0. . . . = . . . .| > 00000360 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 000003f0 20 00 20 00 20 00 20 00 0d 00 0d 00 20 00 20 00 | . . . = ..... . .| > 00000400 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 000004c0 20 00 20 00 0d 00 0d 00 46 00 50 00 54 00 20 00 | . = .....F.P.T. .| > 000004d0 4f 00 70 00 65 00 72 00 61 00 74 00 69 00 6f 00 = |O.p.e.r.a.t.i.o.| > 000004e0 6e 00 20 00 53 00 75 00 63 00 63 00 65 00 73 00 |n. = .S.u.c.c.e.s.| > 000004f0 73 00 66 00 75 00 6c 00 2e 00 20 00 20 00 20 00 = |s.f.u.l... . . .| > 00000500 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 00000590 0d 00 0d 00 20 00 20 00 20 00 20 00 20 00 20 00 |.... . . = . . . .| > 000005a0 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 | . . . . = . . . .| > * > 00000650 20 00 20 00 20 00 20 00 20 00 20 00 0d 00 0d 00 | . . . . = . .....| > 00000660 0d 00 0a 00 |....| > 00000664 >=20 >=20 > [1] https://en.wikipedia.org/wiki/Byte_order_mark#UTF-16 = > [2] https://en.wikipedia.org/wiki/Newline = >=20 > Thanks, >=20 > Andrew Fish >=20 >=20 >>=20 >> thank you, >> by krishna. >>=20 >>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel >=20