每次运行fuchsia模拟器时都会报出warning:

    1. perl: warning: Setting locale failed.
    2. perl: warning: Please check that your locale settings:
    3. LANGUAGE = "en_US",
    4. LC_ALL = (unset),
    5. LC_ADDRESS = "zh_CN.UTF-8",
    6. LC_NAME = "zh_CN.UTF-8",
    7. LC_MONETARY = "zh_CN.UTF-8",
    8. LC_PAPER = "zh_CN.UTF-8",
    9. LC_IDENTIFICATION = "zh_CN.UTF-8",
    10. LC_TELEPHONE = "zh_CN.UTF-8",
    11. LC_MEASUREMENT = "zh_CN.UTF-8",
    12. LC_TIME = "zh_CN.UTF-8",
    13. LC_NUMERIC = "zh_CN.UTF-8",
    14. LANG = "en_US.UTF-8"
    15. are supported and installed on your system.
    16. perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

    解决办法

    1. 确认/etc/locale.gen里的内容是否正确。我只用两个locale,en_US.UTF-8 UTF-8和zh_CN.UTF-8 UTF-8,其他的都注释掉或删除。
    2. 执行locale-gen。
      1. $ sudo locale-gen
      2. Generating locales...
      3. en_US.UTF-8... done
      4. zh_CN.UTF-8... done
      5. Generation complete.
      再运行fuchsia模拟器就不报这个warning了。