473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Locales

Rg
Hi all,

I am new to I18N in C and I have a few doubts (and probably many
misconcepts) about it. Here's some questions I can't find the answers
for yet.

1) Where can I find a good introductory material that will help me
understanding I18N in C, instead of giving me a lot of (more)
misconcepts?

2) I see a C program as a stream of bytes that is interpreted by a
compiler. So am I correct to say that

L"Long string"
"Longer string, but semantically not so long"

are both streams of bytes, no matter what the literals contents are?

3) If the answer for 2 is "yes" why do I need the L modifier for wide
strings?

That's all for now. Probably the answer for 1 would help me finding the
answers for 2 and 3, but...

Jan 19 '07 #1
2 1232
"Rg" <rg*****@gmail.comwrites:
Hi all,

I am new to I18N in C and I have a few doubts (and probably many
misconcepts) about it. Here's some questions I can't find the answers
for yet.

1) Where can I find a good introductory material that will help me
understanding I18N in C, instead of giving me a lot of (more)
misconcepts?
I hope others will jump in if they know really good ones, but I had
quick look at:

http://www.chemie.fu-berlin.de/chemn...c/libc_19.html

and I though it looked sound. Because it is GNU C there will be
extensions described that are non-standard so I would read it while
cross-referencing with something like the pages at

http://www.dinkumware.com/manuals/?m...=lib_over.html

which describe Standard C headers.
2) I see a C program as a stream of bytes that is interpreted by a
compiler. So am I correct to say that

L"Long string"
"Longer string, but semantically not so long"

are both streams of bytes, no matter what the literals contents are?
Yes...
3) If the answer for 2 is "yes" why do I need the L modifier for wide
strings?
Because it causes the compiler to build an object of a different
type. "..." makes an array of char but L"..." makes and array of
wchar_t (the C type used for wide characters).

1, 1L and 1.0 are all "streams of bytes" but they describe values of
different types.

--
Ben.
Jan 20 '07 #2
Rg wrote:
Hi all,

I am new to I18N in C and I have a few doubts (and probably many
misconcepts) about it. Here's some questions I can't find the answers
for yet.

1) Where can I find a good introductory material that will help me
understanding I18N in C, instead of giving me a lot of (more)
misconcepts?
A simple Google search turns up a few links. However I haven't checked
them out myself.

<developers.sun.com/dev/gadc/educationtutorial/creference/index.html>
<www.i18ngurus.com/docs/984813273.html>
<www.i18n.ca/workshops/CCI_Description.pdf>
<www.suodenjoki.dk/us/productions/articles/localization.htm>
<www.angelikalanger.com/Resources/Books/I18n.htm>

Jan 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Adrian Parker | last post by:
I have a server app which is sent a date in the local format of the client machine. I've no control over the client app at all, so have to code at the server end to cope with any problems. The...
0
by: Christian Marko | last post by:
Hi to all! As I read in the bug report on the Sun website, the bug, that java and javaw uses different default locales should be fixed with 1.4.2, but I use 1.4.2_04 and this bug still occurs. ...
3
by: Ellen Herzfeld | last post by:
I have been tearing my hair out trying to get Python to sort strings containing accented characters according to the French locale settings on Mac OS X (10.3). I think I've done it correctly...
2
by: garykpdx | last post by:
Is there some sort of tutorial on locales or the locale module? I can't seem to find a list showing all possible locales. I made 'en' work alright, but when I tried 'de' or 'de_DE' or 'es_ES',...
7
by: saroj.yadav | last post by:
As I understand it (correct me, if I am wrong) Unicode came into picture so that a document containing multiple language characters can be supported like somebody can write a document comparing...
3
by: J Trauntvein | last post by:
I was working with a co-worker the other day to work through the process of formatting numeric values by imbueing C++ iostreams with locales. His program's initialisation code had a call to...
3
by: Joshua Stewart | last post by:
Hi, I am trying to characterise a problem I am seeing on our C#/C++ xml driven application. We have recently added some basic Spanish language support to our application, but it seems that there...
8
by: Rik | last post by:
Hi all, is there a in PHP to get the available locales without shellacces (i.e. locale -a)? Grtz, -- Rik Wasmus
2
by: Adrian | last post by:
Hi All, Is there anyway to change what isspace thinks is a space character. I am parsing some log files and it would be nice to just read a field as what ever is between quotes or between 's ie...
4
by: Gilles Ganault | last post by:
Hello What does it take to support locales? The following test code found on the PHP site doesn't work as planned: ======= setlocale(LC_TIME, "C"); echo strftime("%A"); setlocale(LC_TIME,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.