Questions tagged [nul]

NUL is the abbreviation for the null character in several character sets

NUL has a value of 0 and is often written as the escape sequence \0. It is used as a terminator in standard strings.

179 questions
1
vote
0 answers

Android studio showing random code instead original file for flutter project. same file views perfectly in vs-code or notepad

Here are the screenshots from different IDEs. Android studio VS Code
1
vote
1 answer

How to allow bash to performantly read data which includes NUL bytes?

More exactly, the question is: Which recipes are there to enable bash scripts to properly and safely process N bytes which might contain NUL? This question led to following observation: bash -c 'LC_ALL=C read -rN 1
Tino
  • 9,583
  • 5
  • 55
  • 60
1
vote
1 answer

Force Git to read ANSI files containing NUL

There are many, many places describing how to "force" Git to read a file as text. Generally, the solution involves adding a filter to .gitattributes to apply the text attribute to the file(s). Examples include: * text * text=auto * text diff merge *…
patricktokeeffe
  • 1,058
  • 1
  • 11
  • 21
1
vote
1 answer

LINQ Count null values

I'm doing a simple Pie chart that counts current employee, I'm still new to LINQ so I just want to ask is there a way to total count null values? Here's my code so far: public ActionResult PieCount() { int undefined = db.EMPs.Where(x =>…
Adrian
  • 17
  • 7
1
vote
2 answers

allow user to complete parallel / xargs command (function) after selecting files into array; quoting nuls correctly in printf script

This is a follow-on question to this question In that question, I could get selected files into an array and pass them to a command / function (already exported). This question differs in that I would like the user to complete the command after…
Tim
  • 291
  • 2
  • 17
1
vote
3 answers

NUL termination - is it always required?

I was taught to always nul terminate char arrays. I understand the implications of using string library functions without nul termination. Is the following piece of code considered bad practice? unsigned char foo[2] = { 0xFF, 0xFE }; // not null…
Mike Seeds
  • 400
  • 3
  • 10
1
vote
1 answer

How to force git to treat text file that contains NUL as text?

I'm using text files as a kind of very simple database, that just contain NUL-separated strings. I want to manage these files by git, as text. Here is a sample file (^@ means NUL): Tlrl-ng tl tlu ^@aget does not wait for all forked processed.…
HappyFace
  • 3,439
  • 2
  • 24
  • 43
1
vote
2 answers

Laravel call to member function on null

I have spent the last hour googling and reading stack posts on this problem, but have been unable to resolve this issue. I attached a try catch and an if statement and I still am getting the call to member function on null error. Here is my code …
Aaron
  • 4,380
  • 19
  • 85
  • 141
1
vote
0 answers

readr::read_file escape nul character

I have a badly structured text file which I want to transform into a tidy data frame. As a first step, I need to read the whole file, which I want to do using readr::read_file("my_file.txt"). Unfortunately, read_file() stops reading the file after a…
der_grund
  • 1,898
  • 20
  • 36
1
vote
2 answers

Read txt files containing nul character as seprator, such as \001?

when I use r to read the txt files,I set the read.table sep para as sep="\001" or sep="\\001" both not worked. V1 1 …
chunjin
  • 240
  • 1
  • 8
1
vote
1 answer

How do I remove NUL characters from a CSV using Python

I've noticed that several CSVs that come my way have random 'NUL' values placed through out the file. I noticed this because when I import the file into a database using a SSIS package I built those files throw a no column delimiter found error. I'm…
lsward
  • 45
  • 1
  • 1
  • 10
1
vote
2 answers

How does nul work when a file called nul exists

If nul can never be a file in Windows, what if it a file called "nul" was created in all the directorys using a OS that doesn't have the same rules for nul. Would data be written to nul if for example 'echo 1234>nul' was performed in CMD or would it…
barry john
  • 13
  • 2
1
vote
1 answer

C++: How to encode a std::string into base64 without losing NUL character

I am working on getting someone else's code up and running. The code is written in C++. The part that is failing is when it converts a std::string to base64: std::string tmp =…
justin
  • 164
  • 1
  • 10
1
vote
4 answers

split a char array into tokens where the separator is NUL char

I want to split a char array into tokens using the NUL char as the separator. I have a char array that I've received over the network from a recv command, so I know the length of the char array. In that char array there are bunch of strings that…
Joel Pearson
  • 1,622
  • 1
  • 16
  • 28
1
vote
0 answers

Android Studio Crashes when trying to retrieve file via local history

My pc crashed. A java file became corrupted, and that file just displays 'nul' 'nul' etc. in notepad++. When I try and click on the file to open it, Android Studio crashes, and if I right click on that file and try and restore it by clicking on…
Micah Simmons
  • 2,078
  • 2
  • 20
  • 38