Project

General

Profile

Actions

Bug #4448

closed

zfs diff misprints unicode characters

Added by J L over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
2014-01-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Sorry if my explanation is confusing--character sets have never been by strong suit...

It seems that unicode characters are displayed incorrectly in zfs diff output:

[root@smarty ~]# touch /opt/abcdéfg.txt
[root@smarty ~]# zfs diff -HF zones/opt@snapshot
M       /       /opt/
+       F       /opt/abcd\\37777777703\\37777777651fg.txt

\\37777777703\\37777777651 appears to be an octal-escaped equivalent of hex bytes 0xc3 0xa9, which in turn represents 'é' in UTF-8.

Instead, I would expect to see \\303\\251 as the proper octal-escaped equivalent.

A similar issue was reported and fixed here: https://github.com/zfsonlinux/zfs/issues/1172.

For reference, I'm running a SmartOS build from 20131128T230213Z.


Related issues

Related to illumos gate - Feature #6479: ZFS Diff Prints Carriage ReturnsFeedback2015-11-26

Actions
Actions

Also available in: Atom PDF