473,406 Members | 2,281 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,406 software developers and data experts.

Multi Lang support C functions ?

Hi,
I am writing an application in c. which
retrieves information stored in some conf. files
The application is a simple network agent. it communicates with
a remote network manager.

Suppose i have selected russian key board layout
and store some conf. in some files.

when i view them, i see some spl characters some info which i cant read.
some characters which i suppose it is in russian.

This is similar when i select french or german keyboard layout.

I want to read and write into these files.

The network manager sends me data in the exact same format as it is stored
into these conf. files.

My question is which "functions" i should use to read and write into these
files.

I am using Linux Operating System and C language.
I did try fgetws and fputws functions. but i am getting linker error
obviously these functions are not supported in my libc.
Also when i read the man pages for these functions. i read that
the behaviour of these functions are undefined if the file contains
null characters. i am not sure what are these "null" characters.

I am not sure if these are the functions i have to use.

I did try with fgets. i am able to print these characters. But problem is
the character value is showing some -ve value (such as -26) for some russian
character.

i am not sure if i have to use fgets and fputs.

similarly, should i pass any spl value to fopen.

Please advice.
Nov 14 '05 #1
0 857

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

Similar topics

2
by: R. Rajesh Jeba Anbiah | last post by:
I'm supposed to do a big portal with multi-language support and I'm decided to do my own instead of going for gettext. I have sort out few implementations; most of them uses global variables. I'm...
2
by: Dave | last post by:
Hi. I am new to theads and I wanted some advice on my client/server program on Linux. I want to create a CD database with this functionality. 1. Multiple client requests for the same CD...
4
by: Joseph Paterson | last post by:
Hi all, I'm having some trouble with the following code (simplified to show the problem) class Counter { protected: int m_counter; }
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.