- 论坛徽章:
- 0
|
回复 #1 caravsapm70 的帖子
从内核的code来看,kernel在__link_path_walk()的时候,只要你的file name里没'0'或者'/',就没有问题。
查了一下发现了这段话,内核里应该就是用的utf-8编码。
You can now already use any Unicode characters in file names. No kernel or file utilities need modifications. This is because file names in the kernel can be anything not containing a null byte, and '/' is used to delimit subdirectories. When encoded using UTF-8, non-ASCII characters will never be encoded using null bytes or slashes. All that happens is that file and directory names occupy more bytes than they contain characters. For example, a filename consisting of five greek characters will appear to the kernel as a 10-byte filename. The kernel does not know (and does not need to know) that these bytes are displayed as greek. |
|