Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Setting LANG environment variable for proper encoding #1029

Merged
merged 1 commit into from
Mar 14, 2017
Merged

Conversation

pshahzeb
Copy link
Contributor

Currently, the vmdk_ops service is invoked through watchdog.sh on esx host.
It unsets the environment variables to avoid file mapping. See /sbin/watchdog.sh Line:45
Setting it to ensure proper encoding especially in cases where string contents include unicode characters

Following output when the volume name as well as datastore name have unicode characters

root@photon-xVmYMbyTn [ ~ ]# docker volume create --driver=vsphere --name=special_name_你你
special_name_你你
root@photon-xVmYMbyTn [ ~ ]# docker volume ls
DRIVER              VOLUME NAME
vsphere             special_name_你你@sharedVmfs-你你

Fixes #575

Currently, the vmdk_ops service is invoked through watchdog.sh on esx host.
It unsets the environment variables to avoid file mapping. See /sbin/watchdog.sh Line:45
Setting it to ensure proper encoding especially in cases where string contents include unicode characters

Fixes #575
Copy link
Contributor

@shaominchen shaominchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@msterin msterin merged commit 6e97b8a into master Mar 14, 2017
@msterin msterin deleted the issue_575 branch March 14, 2017 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants