Comments (4)
rust也没有这个 lastnull。
所以是不是把没有lastnull的语言的chopnull去掉,否则相对c/cpp语言是不公平的?
from swapview-rosetta.
这里是指 cmdline 里最后可能的 null 字节,不是编程语言的字符串实现里可能有的那个。
正常的 cmdline 文件里,参数都是以 null 结尾的(而不是以 null 分割的),所以不删掉直接转成空格的话最后就有一个空格,不好看。但是有些程序不知道干了什么,最后并没有 null 字符,这个时候就不应该把最后一个字节丢掉了。
from swapview-rosetta.
我明白了, 就是c/cpp之类不需要chopnull,而那些字符串里可以有\0的就要chopnull了是吧?
from swapview-rosetta.
都需要的。
from swapview-rosetta.
Related Issues (20)
- Swift version?
- ChezScheme version? HOT 1
- About the project HOT 1
- Julia: need update HOT 1
- different implementation and output for size
- [bug] Go_goroutine 版本 goroutine 同步问题 HOT 1
- Nim: cmdline for Google Chrome is truncated one character at the end
- Inaccurate results for size
- Lua51: file reading stops at null byte?
- 不知道J语言能不能实现这个? HOT 1
- sort.Slice(slist, func(i, j int) HOT 1
- 依云姐姐更新下结果表呗?一年过去了 HOT 1
- c++17: need parallel <execution> example HOT 1
- Stable releases? HOT 3
- Racket:The string-starts-with? procedure is not necessary. HOT 2
- How to set environment variables in the TOML file? HOT 2
- Bash: exit on error (-e) HOT 1
- Parallel D swapview HOT 1
- try Rubinius
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swapview-rosetta.