⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 67448

📁 神经网络昆斯林的新闻组分类2006
💻
字号:
Xref: cantaloupe.srv.cs.cmu.edu comp.windows.x.motif:16890 comp.windows.x:67448Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!howland.reston.ans.net!usc!news.bbn.com!swalkerFrom: swalker@bbn.com (Susan Walker)Newsgroups: comp.windows.x.motif,comp.windows.xSubject: XmTextField truncation with LANG bug(???)Date: 28 Apr 1993 19:17:09 GMTOrganization: Bolt Beranek and Newman (BBN)Lines: 42Distribution: worldMessage-ID: <lttm1lINNrli@news.bbn.com>NNTP-Posting-Host: spcsun18.bbn.comI have found a situation which I think is a bug in X or Motif, but I'm hopingis really just a mistake on my part.  Does anyone know anything aboutthis problem........- I am using an XmTextField, and setting its XmNvalue to a hardcoded  text string (ascii or Kanji) either via XtSetValues or XmTextSetString.  The problem is that when the XmTextField is displayed, the text is getting  truncated, depending on the setting of the environment variables  LANG (more specifically LC_ALL).  When they are set to japanese,  the text gets truncated.  When they are set to english, everything  works fine.  I am taking the default for XmNcolumns.  (Please note that hardcoding of text is NOT done in my actual   application, just in my sample code to make things easier)	- I am running Motif 1.2, X11R5 via HPUX9.01.  My test program is set up  to handle 16 bit Kanji characters.  I have remembered to do     XtSetLanguageProc() prior to my MrmInitialize and my font resources  are set to japanese fonts.- Don't know if this matters, but my dialog box and TextField is initially  created with UIL. The problem does NOT happen with XmText.  Unfortunately substitutingXmTextFields with XmTexts in my application is not an acceptablealternative (way too much code to be modified while in beta!)I have a small test program which illustrates the problem if anyonewants it.  My best guess is that either the X code or Motif is notproperly allocating memory for japanese, but since I don't have thesource to look at it is just a guess.Please let me know if this sounds familiar, or if you have a suggestion,or if you want the sample program.THANKS!!!!!!!!- Susan   swalker@bbn.com  617-873-8190

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -