- 論壇徽章:
- 0
|
回復(fù) #1 caravsapm70 的帖子
從內(nèi)核的code來看,kernel在__link_path_walk()的時(shí)候,只要你的file name里沒'0'或者'/',就沒有問題。
查了一下發(fā)現(xiàn)了這段話,內(nèi)核里應(yīng)該就是用的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. |
|