Sponsored Content
Full Discussion: bash and languages
Top Forums Shell Programming and Scripting bash and languages Post 302202907 by era on Friday 6th of June 2008 03:23:59 AM
Old 06-06-2008
That's the idea, yes. Many of the standard Unix tools only have machine-readable output in the first place, so the effects should be minor. Mainly, anything to do with sort order, currency formatting, human-readable number formatting, date and time formats, measurements etc. is sensitive to locale settings, but many scripts don't touch these things much.

Globally clobbering the user's locale is not such a great idea, actually, so it might be better if you use LC_ALL=C only for those commands which actually require it (so grep "$regex" "$file" | LC_ALL=C sort | uniq >file for example). That way, they still see output in their own language if there is an error message from grep, for instance (provided of course that their copy of grep actually has a localized message catalog).

Google a bit for i18n if you need more information about internationalization and localization.

Last edited by era; 06-06-2008 at 04:34 AM.. Reason: Maybe don't clobber LC_ALL globally after all
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

scripting languages

I am currently working as a configuration manager on a quite a large project. Our development environment is on NT, but from unit testing onwards it will be UNIX. I will need to write scripts to automate the process of migrating code from NT to UNIX, now since I am new to UNIX, I wasn't sure if... (3 Replies)
Discussion started by: headspin
3 Replies

2. UNIX for Dummies Questions & Answers

Programming/Scripting Languages To Learn

Which languages would, in the long run, be best to learn on a UNIX environment for kernel work, every day programs, and overall UNIX programming? I've been learning C for over a year now (which I'm pretty confident with) and decided I want to look into some other languages. I'll mainly be... (1 Reply)
Discussion started by: tjinr
1 Replies

3. Shell Programming and Scripting

output in different languages

hello, i have to change a lot of shell scripts for one reason : the output in a script should be done in different languages. for example: echo "this is a test" and "this is a test" should be printed out in language for an example: german,italian and so. i saw a tool "gettext" ,... (2 Replies)
Discussion started by: bora99
2 Replies

4. What is on Your Mind?

Programming languages polyglots: how many languages you know?

Post what languages (including scripting) you know, why and where you think that language is most usable. Also include libraries in which you're really good at (libusb, gtk, qt, etc). assembly? C or C++? perl or python? pascal? bash or csh/tcsh? opengl? gtk or qt? mono? (27 Replies)
Discussion started by: redoubtable
27 Replies

5. Web Development

What Web Development languages should i learn?

I am learning Web Development, so far i am learning html,xhtml, css, java script.... What I want to know is what other Web Development languages should i learn? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. What is on Your Mind?

How can I learn computer programming languages on my own?

I would love the idea to develop games. How can I teach myself computer programming? What programs or software must I use? I have the new iMac? (5 Replies)
Discussion started by: Anna Hussie
5 Replies

7. Programming

Why is C/C++ considered low-level languages???

Hi friends, I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies
doctools::msgcat::toc::c(n)					Documentation tools				       doctools::msgcat::toc::c(n)

__________________________________________________________________________________________________________________________________________________

NAME
doctools::msgcat::toc::c - Message catalog for the doctoc parser (C) SYNOPSIS
package require Tcl 8.4 package require msgcat package require doctools::msgcat::toc::c ?0.1? _________________________________________________________________ DESCRIPTION
The package doctools::msgcat::toc::c is a support module providing the C language message catalog for the doctoc parser in the doctools system version 2. As such it is an internal package a regular user (developer) should not be in direct contact with. If you are such please go the documentation of either [1] doctools::doc, [2] doctools::toc, or [3] doctools::idx Within the system architecture this package resides under the package doctools::msgcat providing the general message catalog management within the system. Note that there is no explicit dependency between the manager and catalog packages. The catalog is a plugin which is selected and loaded dynamically. API
This package has no exported API. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category doctools of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
C, catalog package, doctoc, doctools, i18n, internationalization, l10n, localization, message catalog, message package CATEGORY
Documentation tools COPYRIGHT
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net> doctools2toc 0.1 doctools::msgcat::toc::c(n)
All times are GMT -4. The time now is 06:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy