---
title: "Linux的sort问题"
author: "Fire_Balrog"
date: "2010-09-18T23:53:31Z"
tags: []
categories: ["操作系统"]
slug: "linux-sort"
draft: false
lastmod: "2010-09-18T23:53:31Z"
id: 766813
url: "https://fire-balrog.iteye.com/blog/766813"
---

这周发现sort的一个问题，直接使用的时候居然不按ASCII排序。。。

查了一下，需要这样设置

*export LC\_CTYPE*=en\_US.ascii

 

实际上

`LC_CTYPE` determines the locale for interpretation of sequences of bytes of text data as characters