2021-01-16 svn: E000022错误

在docker中试图svn checkout,结果因为有中文目录报错

[root@6f4912735213 ~]# svn co https://localhost/svn/repos
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is zh_CN.UTF-8
svn: warning: please check that your locale name is correct
Authentication realm: <https://localhost:443> SVN Repositories
Password for 'zpadm': *********

svn: E000022: Can't convert string from 'UTF-8' to native encoding:
svn: E000022: /root/repos/2020{U+4E2D}{U+5E73}{U+8FC1}{U+79FB}

解决办法:

[root@1ff78526f0d8 /]# export LC_ALL=en_US.UTF-8 
[root@1ff78526f0d8 /]# locale
LANG=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
[root@1ff78526f0d8 /]# svn co https://localhost/svn/repos
Error validating server certificate for 'https://localhost:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
 - The certificate hostname does not match.
Certificate information:
 - Hostname: hwt
 - Valid: from Jan  1 13:25:32 2021 GMT until Dec 30 13:25:32 2030 GMT
 - Issuer: hwt, KJB, PSBCGX, NN, Guangxi, CN(pay2k@126.com)
 - Fingerprint: 58:DA:F5:8E:52:B6:A9:00:97:29:16:3C:BD:86:BD:94:B8:5B:DC:75
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Authentication realm: <https://localhost:443> SVN Repositories
Password for 'root': 

Authentication realm: <https://localhost:443> SVN Repositories
Username: zpadm
Password for 'zpadm': *********

A    repos/2020中平迁移
A    repos/2020中平迁移/项目文档
A    repos/2020中平迁移/项目文档/总结和计划
A    repos/LanguagePack_1.14.0.28885-x64-zh_CN.msi
A    repos/TortoiseSVN-1.14.0.28885-x64-svn-1.14.0.msi
Checked out revision 5.
[root@1ff78526f0d8 /]# 

或者:export LANG=en_US.UTF-8

[docker@yet svn]$ cat docker-compose.yml 
version: '3'
services:
  svnarch:
    image: svnarch:1.0
    ports:
      - 8443:443
      - 3691:3690
    restart: always
    tty: "true"
    command: /run.sh
    volumes:
      - /data/compose/svn/repos:/home/svn/repositories/repos
    container_name: svnarch
    environment:
      LANG: en_US.UTF-8
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 1.背景介绍 开发过程中,会不断发现新需求,不断发现bug。如果没有版本控制 ,出现的bug和之前的代码混在一起很...
    枫尘逍遥阅读 3,870评论 0 10
  • 转载至:https://www.liaoxuefeng.com/wiki/896043488029600 Git简...
    hwang_zhic阅读 2,744评论 0 0
  • Git常用语法 [TOC] Git简介 描述 ​ Git(读音为/gɪt/。)是一个开源的分布式版本控制系统,...
    君惜丶阅读 9,239评论 0 13
  • 声明:这篇文章来源于廖雪峰老师的官方网站,我仅仅是作为学习之用 Git简介 Git是什么? Git是目前世界上最先...
    横渡阅读 9,437评论 3 27
  • 夜莺2517阅读 127,941评论 1 9

友情链接更多精彩内容