#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" This module contains a few functions for running CMake and building projects. """
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import os
import sys

reload(sys)
sys.setdefaultencoding('utf-8')
QIBUILD_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))


def stringify_env(env):
    """ convert each key value pairs to strings in env list"""
    return dict(((str(key), str(val)) for key, val in env.items()))

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" This module contains a few functions for running CMake and building projects. """
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function

import os

QIBUILD_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))


def stringify_env(env):
    """ convert each key value pairs to strings in env list"""
    return dict(((str(key), str(val)) for key, val in env.items()))

Revert "use utf-8 by default"
Revert "use utf-8 by default"

This reverts commit a986aac5e3b4f065d6c2ab70129bde105651d2ca.
