Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
The output comes from 'git status' command.
I have some filenames in Russian in my project folder.
The surprising thing is that git shows all other Russian text correctly, only file names appear encoded.
I've already seek for answers on git's irc chanel. Nobody could help me there.
Searched on the internet, but the closest thing that I've found about this issue, is a 2 year old similar to mine question, unresolved.
So, I thought, that, since the git's community can't help me, I will just write an output reformatter. Something, like this:
git status -s|perl -nle 's/\\([[:digit:]]{3})/sprintf "%c", oct($1)/ge +; print'
After seeing, that it works, I've moved perl oneliner to a file, so, now I do:
git status -s|

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2021-09-25 01:42 GMT
Find Nodes?
    Voting Booth?

    No recent polls found