summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcompat/cuda/ptx2c.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/cuda/ptx2c.sh b/compat/cuda/ptx2c.sh
index 5ccabbf56f..0750e7a3b7 100755
--- a/compat/cuda/ptx2c.sh
+++ b/compat/cuda/ptx2c.sh
@@ -27,7 +27,7 @@ IN="$2"
NAME="$(basename "$IN" | sed 's/\..*//')"
printf "const char %s_ptx[] = \\" "$NAME" > "$OUT"
-while read LINE
+while IFS= read -r LINE
do
printf "\n\t\"%s\\\n\"" "$(printf "%s" "$LINE" | sed -e 's/\r//g' -e 's/["\\]/\\&/g')" >> "$OUT"
done < "$IN"