Solved

how to set my LANG value on OSX, if i set it to "C" i dont have accentuated accents in Command Line like "é" which becomes "C). how to correct ?

Posted on 2014-04-07
1
636 Views
Last Modified: 2014-04-07
Hello experts,

i have updated my macbookpro to maverick. my system is in english.

since then i have  some bash  scripts problems, for instance when i launch a script which contains sed commands. i receive :  sed: RE error: illegal byte sequence
 
i've google on this error and the solution should be for me - i'm using screen which load a .bashrc - to add to my .bashrc "export LC_ALL=C" or "export LC_ALL=POSIX"...

if i set on of the two in my .bashrc , i dont have the sed problem but i can not use accentuated characters in my CLI.

i have also exported
    LANG=fr_CH.UTF-8
but this doesn't change the behaviour,
i have set all: LC_MONETARY, LC_NUMERIC... with the same value as LANG .

can anyone tell me how to set this LC_* values in order to have my sed receiving utf-8 but also my CLI ?

thank you in advance for all your infos.

Toshiro

my problems
i've read sofar that
0
Comment
Question by:toshi_
1 Comment
 

Accepted Solution

by:
toshi_ earned 0 total points
ID: 39983227
ok....sorry. i found out.
if i set on my .bashrc
export LC_ALL=POSIC.fr_CH.UTF-8
i have evertything back...


as a complement,
before updating my system to maverick i didn't have to set this values on my .bashrc and both; my CLI accepted "é" and my sed was runing without problem.
Since Maverick, sounds like it's necessary to set this LC_ALL variable.

i'm running OSX witch ".screen", screens needs a .bashrc.


toshiro
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Create a default user profile for Mac OS X 10.7/10.8 Create a user account on OS X that will be a template for every other user of that computer. I usually call it “profile” and make it an administrator account for the time being. 1. Install a…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question