[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
128/376: nix-log2xml: Handle UTF-8 characters
From: |
Ludovic Courtès |
Subject: |
128/376: nix-log2xml: Handle UTF-8 characters |
Date: |
Wed, 28 Jan 2015 22:04:30 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit e9b609bf9ae301eb415227e76b6ae904881c07eb
Author: Eelco Dolstra <address@hidden>
Date: Wed Aug 13 19:00:07 2014 +0200
nix-log2xml: Handle UTF-8 characters
C++ chars can be negative...
---
src/nix-log2xml/log2xml.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/nix-log2xml/log2xml.cc b/src/nix-log2xml/log2xml.cc
index 6645dc5..e26fb00 100644
--- a/src/nix-log2xml/log2xml.cc
+++ b/src/nix-log2xml/log2xml.cc
@@ -137,7 +137,7 @@ void Decoder::finishLine()
if (line[i] == '<') cout << "<";
else if (line[i] == '&') cout << "&";
else if (line[i] == '\r') ; /* ignore carriage return */
- else if (line[i] < 32 && line[i] != 9) cout << "�";
+ else if (line[i] >= 0 && line[i] < 32 && line[i] != 9) cout <<
"�";
else if (i + sz + 33 < line.size() &&
string(line, i, sz) == storeDir &&
line[i + sz + 32] == '-')
- 115/376: Move some options out of globals, (continued)
- 115/376: Move some options out of globals, Ludovic Courtès, 2015/01/28
- 116/376: Doh, Ludovic Courtès, 2015/01/28
- 112/376: Add option ‘build-extra-chroot-dirs’, Ludovic Courtès, 2015/01/28
- 111/376: Get rid of "killing <pid>" message for unused build hooks, Ludovic Courtès, 2015/01/28
- 129/376: Remove log2html.xsl and friends, Ludovic Courtès, 2015/01/28
- 122/376: Warn about untrusted binary caches in extra-binary-caches, Ludovic Courtès, 2015/01/28
- 113/376: Update manual, Ludovic Courtès, 2015/01/28
- 126/376: Handle compound single dash options properly, Ludovic Courtès, 2015/01/28
- 124/376: Fix warning about non-existant -I directories, Ludovic Courtès, 2015/01/28
- 127/376: Use regular file GC roots if possible, Ludovic Courtès, 2015/01/28
- 128/376: nix-log2xml: Handle UTF-8 characters,
Ludovic Courtès <=
- 132/376: nix-shell: Use $XDG_RUNTIME_DIR, Ludovic Courtès, 2015/01/28
- 120/376: download-from-binary-cache.pl: Respect $SSL_CERT_FILE, Ludovic Courtès, 2015/01/28
- 123/376: Remove pointless NIX_LOG_TYPE environment variable, Ludovic Courtès, 2015/01/28
- 136/376: Propagate remote timeouts properly, Ludovic Courtès, 2015/01/28
- 131/376: Use $XDG_RUNTIME_DIR for temporary files, Ludovic Courtès, 2015/01/28
- 137/376: Reduce verbosity, Ludovic Courtès, 2015/01/28
- 133/376: Fix download-via-ssh, Ludovic Courtès, 2015/01/28
- 130/376: nix-log2xml: Handle newlines, Ludovic Courtès, 2015/01/28
- 143/376: nix-store -l: Automatically pipe output into $PAGER, Ludovic Courtès, 2015/01/28
- 139/376: Fix --attr parsing, Ludovic Courtès, 2015/01/28