bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TSCII iconv module (followup)


From: Thuraiappah Vaseeharan
Subject: TSCII iconv module (followup)
Date: Tue, 15 Jan 2002 21:24:34 -0600

Just to clear up my previous post a little bit:

Locale:
LC_ALL=ta_IN.TSCII 
(Created with localedef and verified with commands like date, cal etc.)

The test program I used:

#include <stdio.h>
#include <libintl.h>
#include <locale.h>

int main(int argc, char*argv[])
{

        setlocale (LC_ALL, "");
        bindtextdomain ("hello", "/usr/lib/locale/");
        textdomain ("hello");
        puts(gettext ("Hello, World\n")) ; ;
}

and the .po file (in Tamil UTF-8)

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <address@hidden>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-01-07 00:40-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <address@hidden>\n"
"Language-Team: LANGUAGE <address@hidden>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: hello.c:6
msgid "Hello, World\n"
msgstr "à®~Eà®´à®~Zà¯~Mà®~Zà¯~Aà®~Uிய à®~Iலà®~Uà¯~K\n"

The program works as expected with the .po file is in TSCII. I was expecting 
gettext will automagically convert UTF-8 to TSCII if the .po file is in 
UTF-8. However, it just dumps the individual bytes of the UTF-8 string.

-Vasee



reply via email to

[Prev in Thread] Current Thread [Next in Thread]